Corrected wxPython notes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -173,13 +173,15 @@ Under X, {\it type} defaults to wxBITMAP\_TYPE\_XPM.
|
|||||||
\pythonnote{Constructors supported by wxPython are:\par
|
\pythonnote{Constructors supported by wxPython are:\par
|
||||||
\indented{2cm}{\begin{twocollist}
|
\indented{2cm}{\begin{twocollist}
|
||||||
\twocolitem{{\bf wxBitmap(name, flag)}}{Loads a bitmap from a file}
|
\twocolitem{{\bf wxBitmap(name, flag)}}{Loads a bitmap from a file}
|
||||||
\twocolitem{{\bf wxBitmapFromData(data, type, width, height, depth=1)}}{Creates
|
|
||||||
a bitmap from the given data, which can be of arbitrary type.}
|
|
||||||
\twocolitem{{\bf wxNoRefBitmap(name, flag)}}{This one won't own the
|
|
||||||
reference, so Python won't call the destructor, this is good for toolbars
|
|
||||||
and such where the parent will manage the bitmap.}
|
|
||||||
\twocolitem{{\bf wxEmptyBitmap(width, height, depth = -1)}}{Creates an
|
\twocolitem{{\bf wxEmptyBitmap(width, height, depth = -1)}}{Creates an
|
||||||
empty bitmap with the given specifications}
|
empty bitmap with the given specifications}
|
||||||
|
\twocolitem{{\bf wxBitmapFromXPMData(listOfStrings)}}{Create a bitmap
|
||||||
|
from a Python list of strings whose contents are XPM data.}
|
||||||
|
\twocolitem{{\bf wxBitmapFromBits(bits, width, height,
|
||||||
|
depth=-1)}}{Create a bitmap from an array of bits contained in a
|
||||||
|
string.}
|
||||||
|
\twocolitem{{\bf wxBitmapFromImage(image, depth=-1)}}{Convert a
|
||||||
|
wxImage to a wxBitmap.}
|
||||||
\end{twocollist}}
|
\end{twocollist}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user