Can I have border around a \lrbox in beamer?
I have a minipage inside the lrbox.
I know I can use \fbox.
Update
Sorry for the confusion. I need a border around the block of data, it is inside a lrbox which is inside a resizebox. I need lrbox because I cannot use verbatim directly inside resizebox.
Here is my code:
\documentclass{beamer}
\begin{document}
\newsavebox\myint
\begin{lrbox}{\myint}
\begin{minipage}{0.8\textwidth}
\begin{verbatim}
class int(object)
| int(x[, base]) -> integer
|
| Convert a string or number to an integer, if possible. A floating point
| argument will be truncated towards zero (this does not include a string
| representation of a floating point number!) When converting a string, use
| the optional base. It is an error to supply a base when converting a
| non-string. If base is zero, the proper base is guessed based on the
| string content. If the argument is outside the integer range a
| long object will be returned instead.
\end{verbatim}
\end{minipage}
\end{lrbox}
\begin{frame}[fragile]{Object}
\begin{center}
\resizebox{0.4\textwidth}{0.2\textheight}{\usebox\myint}
\end{center}
\end{frame}
\end{document}



listingspackage. – percusse Mar 1 at 9:39