"""
return _controls.Button_SetDefault(*args, **kwargs)
- def SetImageLabel(*args, **kwargs):
- """SetImageLabel(Bitmap bitmap)"""
- return _controls.Button_SetImageLabel(*args, **kwargs)
-
- def SetImageMargins(*args, **kwargs):
- """SetImageMargins(int x, int y)"""
- return _controls.Button_SetImageMargins(*args, **kwargs)
-
def GetDefaultSize(*args, **kwargs):
"""GetDefaultSize() -> Size"""
return _controls.Button_GetDefaultSize(*args, **kwargs)
return _controls.Button_GetDefaultSize(*args, **kwargs)
class BitmapButton(Button):
- """A Buttont that contains a bitmap."""
+ """
+ A Button that contains a bitmap. A bitmap button can be supplied with a
+ single bitmap, and wxWindows will draw all button states using this bitmap. If
+ the application needs more control, additional bitmaps for the selected state,
+ unpressed focused state, and greyed-out state may be supplied.
+
+ """
def __repr__(self):
return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
Validator validator=DefaultValidator,
String name=ButtonNameStr) -> BitmapButton
- Create and show a button.
+ Create and show a button with a bitmap for the label.
"""
newobj = _controls.new_BitmapButton(*args, **kwargs)
self.this = newobj.this
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ChoiceNameStr) -> Choice
"""
def Create(*args, **kwargs):
"""
Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ChoiceNameStr) -> bool
"""
"""
__init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ComboBoxNameStr) -> ComboBox
"""
"""
Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ComboBoxNameStr) -> bool
"""
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ListBoxNameStr) -> ListBox
"""
def Create(*args, **kwargs):
"""
Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ListBoxNameStr) -> bool
"""
"""IsSorted() -> bool"""
return _controls.ListBox_IsSorted(*args, **kwargs)
+ def SetItemForegroundColour(*args, **kwargs):
+ """SetItemForegroundColour(int item, Colour c)"""
+ return _controls.ListBox_SetItemForegroundColour(*args, **kwargs)
+
+ def SetItemBackgroundColour(*args, **kwargs):
+ """SetItemBackgroundColour(int item, Colour c)"""
+ return _controls.ListBox_SetItemBackgroundColour(*args, **kwargs)
+
+ def SetItemFont(*args, **kwargs):
+ """SetItemFont(int item, Font f)"""
+ return _controls.ListBox_SetItemFont(*args, **kwargs)
+
class ListBoxPtr(ListBox):
def __init__(self, this):
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ListBoxNameStr) -> CheckListBox
"""
def Create(*args, **kwargs):
"""
Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ListBoxNameStr) -> bool
"""
TEXT_ATTR_LEFT_INDENT = _controls.TEXT_ATTR_LEFT_INDENT
TEXT_ATTR_RIGHT_INDENT = _controls.TEXT_ATTR_RIGHT_INDENT
TEXT_ATTR_TABS = _controls.TEXT_ATTR_TABS
+TE_HT_UNKNOWN = _controls.TE_HT_UNKNOWN
+TE_HT_BEFORE = _controls.TE_HT_BEFORE
+TE_HT_ON_TEXT = _controls.TE_HT_ON_TEXT
+TE_HT_BELOW = _controls.TE_HT_BELOW
+TE_HT_BEYOND = _controls.TE_HT_BEYOND
class TextAttr(object):
def __repr__(self):
return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
+ def __del__(self, destroy=_controls.delete_TextAttr):
+ """__del__()"""
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
def Init(*args, **kwargs):
"""Init()"""
return _controls.TextAttr_Init(*args, **kwargs)
"""ShowPosition(long pos)"""
return _controls.TextCtrl_ShowPosition(*args, **kwargs)
+ def HitTest(*args, **kwargs):
+ """
+ HitTest(Point pt) -> (result, row, col)
+
+ Find the character at position given in pixels.
+ NB: pt is in device coords (not adjusted for the client area
+ origin nor scrolling)
+ """
+ return _controls.TextCtrl_HitTest(*args, **kwargs)
+
def Copy(*args, **kwargs):
"""Copy()"""
return _controls.TextCtrl_Copy(*args, **kwargs)
return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(Window parent, int id, String label, Point point=DefaultPosition,
- Size size=DefaultSize, int choices=0,
- String choices_array=None, int majorDimension=0,
+ __init__(Window parent, int id, String label, Point pos=DefaultPosition,
+ Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
+ int majorDimension=0,
long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
String name=RadioBoxNameStr) -> RadioBox
"""
+ if kwargs.has_key('point'): kwargs['pos'] = kwargs['point']
newobj = _controls.new_RadioBox(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
def Create(*args, **kwargs):
"""
- Create(Window parent, int id, String label, Point point=DefaultPosition,
- Size size=DefaultSize, int choices=0,
- String choices_array=None, int majorDimension=0,
+ Create(Window parent, int id, String label, Point pos=DefaultPosition,
+ Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
+ int majorDimension=0,
long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
String name=RadioBoxNameStr) -> bool
"""
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, int value, int minValue, int maxValue,
- Point point=DefaultPosition, Size size=DefaultSize,
+ Point pos=DefaultPosition, Size size=DefaultSize,
long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
String name=SliderNameStr) -> Slider
"""
+ if kwargs.has_key('point'): kwargs['pos'] = kwargs['point']
newobj = _controls.new_Slider(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
def Create(*args, **kwargs):
"""
Create(Window parent, int id, int value, int minValue, int maxValue,
- Point point=DefaultPosition, Size size=DefaultSize,
+ Point pos=DefaultPosition, Size size=DefaultSize,
long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
String name=SliderNameStr) -> bool
"""
return _controls.Slider_GetThumbLength(*args, **kwargs)
def SetTickFreq(*args, **kwargs):
- """SetTickFreq(int n, int pos)"""
+ """SetTickFreq(int n, int pos=1)"""
return _controls.Slider_SetTickFreq(*args, **kwargs)
def GetTickFreq(*args, **kwargs):
"""Unselect()"""
return _controls.TreeCtrl_Unselect(*args, **kwargs)
+ def UnselectItem(*args, **kwargs):
+ """UnselectItem(TreeItemId item)"""
+ return _controls.TreeCtrl_UnselectItem(*args, **kwargs)
+
def UnselectAll(*args, **kwargs):
"""UnselectAll()"""
return _controls.TreeCtrl_UnselectAll(*args, **kwargs)
def SelectItem(*args, **kwargs):
- """SelectItem(TreeItemId item)"""
+ """SelectItem(TreeItemId item, bool select=True)"""
return _controls.TreeCtrl_SelectItem(*args, **kwargs)
+ def ToggleItemSelection(*args, **kwargs):
+ """ToggleItemSelection(TreeItemId item)"""
+ return _controls.TreeCtrl_ToggleItemSelection(*args, **kwargs)
+
def EnsureVisible(*args, **kwargs):
"""EnsureVisible(TreeItemId item)"""
return _controls.TreeCtrl_EnsureVisible(*args, **kwargs)