Home | Trees | Index | Help |
|
---|
Package wx :: Module combo :: Class BitmapComboBox |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Control
--+ |ComboCtrl
--+ |object
--+ | | |ItemContainer
--+ |OwnerDrawnComboBox
--+ | BitmapComboBox
A combobox that displays a bitmap in front of the list items. It currently only allows using bitmaps of one size, and resizes itself so that a bitmap can be shown next to the text field.
wx.CB_READONLY Creates a combobox without a text editor. On some platforms the control may appear very different when this style is used. wx.CB_SORT Sorts the entries in the list alphabetically. wx.TE_PROCESS_ENTER The control will generate the event wx.EVT__TEXT_ENTER (otherwise pressing Enter key is either processed internally by the control or used for navigation between dialog controls).
Method Summary | |
---|---|
BitmapComboBox |
Standard constructor |
int |
Adds the item to the control, associating the given data with the item if not None. |
bool |
Create the UI object, and other initialization. |
Size |
Returns size of the image used in list. |
Bitmap |
Returns the image of the item with the given index. |
int |
Insert an item into the control before the item at the pos index, optionally associating some data object with the item. |
Sets the image for the given item. |
Property Summary | |
---|---|
thisown : The membership flag |
Class Variable Summary |
---|
Instance Method Details |
---|
__init__(self,
parent,
id=-1,
value=EmptyString,
pos=DefaultPosition,
size=DefaultSize,
choices=wxPyEmptyStringArray,
style=0,
validator=DefaultValidator,
name=wxBitmapComboBoxNameStr)
|
Append(self, item, bitmap=wxNullBitmap, clientData=None)Adds the item to the control, associating the given data with the item if not None. The return value is the index of the newly added item.
|
Create(self, parent, id=-1, value=EmptyString, pos=DefaultPosition, size=DefaultSize, choices=wxPyEmptyStringArray, style=0, validator=DefaultValidator, name=wxBitmapComboBoxNameStr)Create the UI object, and other initialization.
|
GetBitmapSize(self)Returns size of the image used in list.
|
GetItemBitmap(self, n)Returns the image of the item with the given index.
|
Insert(self, item, bitmap, pos, clientData=None)Insert an item into the control before the item at the pos index, optionally associating some data object with the item.
|
SetItemBitmap(self, n, bitmap)Sets the image for the given item.
|
Property Details |
---|
thisownThe membership flag
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:07:39 2007 | http://epydoc.sf.net |