X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0085ce493764aeb971cb312126cf46184fcc6916..268c20fa314757f7e284b9380710bc6c2dca83fc:/wxPython/src/gtk/_controls.py?ds=sidebyside diff --git a/wxPython/src/gtk/_controls.py b/wxPython/src/gtk/_controls.py index 0a9a508d29..3137d73527 100644 --- a/wxPython/src/gtk/_controls.py +++ b/wxPython/src/gtk/_controls.py @@ -701,6 +701,14 @@ class ComboBox(_core.Control,_core.ItemContainer): """ return _controls_.ComboBox_SetStringSelection(*args, **kwargs) + def SetString(*args, **kwargs): + """ + SetString(self, int n, String string) + + Set the label for the n'th item (zero based) in the list. + """ + return _controls_.ComboBox_SetString(*args, **kwargs) + def SetEditable(*args, **kwargs): """SetEditable(self, bool editable)""" return _controls_.ComboBox_SetEditable(*args, **kwargs) @@ -852,7 +860,7 @@ def ComboBox_GetClassDefaultAttributes(*args, **kwargs): GA_HORIZONTAL = _controls_.GA_HORIZONTAL GA_VERTICAL = _controls_.GA_VERTICAL GA_SMOOTH = _controls_.GA_SMOOTH -GA_PROGRESSBAR = _controls_.GA_PROGRESSBAR +GA_PROGRESSBAR = 0 # obsolete class Gauge(_core.Control): """Proxy of C++ Gauge class""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') @@ -1294,7 +1302,7 @@ class ListBox(_core.ControlWithItems): return _controls_.ListBox_Insert(*args, **kwargs) def InsertItems(*args, **kwargs): - """InsertItems(self, wxArrayString items, int pos)""" + """InsertItems(self, wxArrayString items, unsigned int pos)""" return _controls_.ListBox_InsertItems(*args, **kwargs) def Set(*args, **kwargs): @@ -1444,11 +1452,11 @@ class CheckListBox(ListBox): return _controls_.CheckListBox_Create(*args, **kwargs) def IsChecked(*args, **kwargs): - """IsChecked(self, int index) -> bool""" + """IsChecked(self, unsigned int index) -> bool""" return _controls_.CheckListBox_IsChecked(*args, **kwargs) def Check(*args, **kwargs): - """Check(self, int index, int check=True)""" + """Check(self, unsigned int index, int check=True)""" return _controls_.CheckListBox_Check(*args, **kwargs) def GetItemHeight(*args, **kwargs): @@ -1483,9 +1491,9 @@ TE_DONTWRAP = _controls_.TE_DONTWRAP TE_CHARWRAP = _controls_.TE_CHARWRAP TE_WORDWRAP = _controls_.TE_WORDWRAP TE_BESTWRAP = _controls_.TE_BESTWRAP -TE_LINEWRAP = _controls_.TE_LINEWRAP TE_RICH2 = _controls_.TE_RICH2 TE_CAPITALIZE = _controls_.TE_CAPITALIZE +TE_LINEWRAP = TE_CHARWRAP TEXT_ALIGNMENT_DEFAULT = _controls_.TEXT_ALIGNMENT_DEFAULT TEXT_ALIGNMENT_LEFT = _controls_.TEXT_ALIGNMENT_LEFT TEXT_ALIGNMENT_CENTRE = _controls_.TEXT_ALIGNMENT_CENTRE @@ -2324,7 +2332,7 @@ class RadioBox(_core.Control): return _controls_.RadioBox_SetStringSelection(*args, **kwargs) def GetCount(*args, **kwargs): - """GetCount(self) -> int""" + """GetCount(self) -> size_t""" return _controls_.RadioBox_GetCount(*args, **kwargs) def FindString(*args, **kwargs): @@ -2342,19 +2350,27 @@ class RadioBox(_core.Control): GetItemLabel = GetString SetItemLabel = SetString def EnableItem(*args, **kwargs): - """EnableItem(self, int n, bool enable=True)""" + """EnableItem(self, unsigned int n, bool enable=True)""" return _controls_.RadioBox_EnableItem(*args, **kwargs) def ShowItem(*args, **kwargs): - """ShowItem(self, int n, bool show=True)""" + """ShowItem(self, unsigned int n, bool show=True)""" return _controls_.RadioBox_ShowItem(*args, **kwargs) + def IsItemEnabled(*args, **kwargs): + """IsItemEnabled(self, unsigned int n) -> bool""" + return _controls_.RadioBox_IsItemEnabled(*args, **kwargs) + + def IsItemShown(*args, **kwargs): + """IsItemShown(self, unsigned int n) -> bool""" + return _controls_.RadioBox_IsItemShown(*args, **kwargs) + def GetColumnCount(*args, **kwargs): - """GetColumnCount(self) -> int""" + """GetColumnCount(self) -> unsigned int""" return _controls_.RadioBox_GetColumnCount(*args, **kwargs) def GetRowCount(*args, **kwargs): - """GetRowCount(self) -> int""" + """GetRowCount(self) -> unsigned int""" return _controls_.RadioBox_GetRowCount(*args, **kwargs) def GetNextItem(*args, **kwargs): @@ -2738,6 +2754,7 @@ BK_BOTTOM = _controls_.BK_BOTTOM BK_LEFT = _controls_.BK_LEFT BK_RIGHT = _controls_.BK_RIGHT BK_ALIGN_MASK = _controls_.BK_ALIGN_MASK +BK_BUTTONBAR = _controls_.BK_BUTTONBAR class BookCtrlBase(_core.Control): """Proxy of C++ BookCtrlBase class""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') @@ -2807,6 +2824,14 @@ class BookCtrlBase(_core.Control): """IsVertical(self) -> bool""" return _controls_.BookCtrlBase_IsVertical(*args, **kwargs) + def SetControlMargin(*args, **kwargs): + """SetControlMargin(self, int margin)""" + return _controls_.BookCtrlBase_SetControlMargin(*args, **kwargs) + + def GetControlMargin(*args, **kwargs): + """GetControlMargin(self) -> int""" + return _controls_.BookCtrlBase_GetControlMargin(*args, **kwargs) + def SetFitToCurrentPage(*args, **kwargs): """SetFitToCurrentPage(self, bool fit)""" return _controls_.BookCtrlBase_SetFitToCurrentPage(*args, **kwargs) @@ -2815,6 +2840,10 @@ class BookCtrlBase(_core.Control): """GetFitToCurrentPage(self) -> bool""" return _controls_.BookCtrlBase_GetFitToCurrentPage(*args, **kwargs) + def GetControlSizer(*args, **kwargs): + """GetControlSizer(self) -> Sizer""" + return _controls_.BookCtrlBase_GetControlSizer(*args, **kwargs) + def DeletePage(*args, **kwargs): """DeletePage(self, size_t n) -> bool""" return _controls_.BookCtrlBase_DeletePage(*args, **kwargs) @@ -3808,10 +3837,6 @@ class ToolBar(ToolBarBase): """ return _controls_.ToolBar_Create(*args, **kwargs) - def FindToolForPosition(*args, **kwargs): - """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" - return _controls_.ToolBar_FindToolForPosition(*args, **kwargs) - def GetClassDefaultAttributes(*args, **kwargs): """ GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes @@ -4383,10 +4408,12 @@ class ListCtrl(_core.Control): """GetItemSpacing(self) -> Size""" return _controls_.ListCtrl_GetItemSpacing(*args, **kwargs) + GetItemSpacing = wx._deprecated(GetItemSpacing) def SetItemSpacing(*args, **kwargs): """SetItemSpacing(self, int spacing, bool isSmall=False)""" return _controls_.ListCtrl_SetItemSpacing(*args, **kwargs) + SetItemSpacing = wx._deprecated(SetItemSpacing) def GetSelectedItemCount(*args, **kwargs): """GetSelectedItemCount(self) -> int""" return _controls_.ListCtrl_GetSelectedItemCount(*args, **kwargs) @@ -4743,8 +4770,10 @@ TR_ROW_LINES = _controls_.TR_ROW_LINES TR_FULL_ROW_HIGHLIGHT = _controls_.TR_FULL_ROW_HIGHLIGHT TR_DEFAULT_STYLE = _controls_.TR_DEFAULT_STYLE TR_TWIST_BUTTONS = _controls_.TR_TWIST_BUTTONS -TR_MAC_BUTTONS = _controls_.TR_MAC_BUTTONS -TR_AQUA_BUTTONS = _controls_.TR_AQUA_BUTTONS +# obsolete +TR_MAC_BUTTONS = 0 +wxTR_AQUA_BUTTONS = 0 + TreeItemIcon_Normal = _controls_.TreeItemIcon_Normal TreeItemIcon_Selected = _controls_.TreeItemIcon_Selected TreeItemIcon_Expanded = _controls_.TreeItemIcon_Expanded @@ -4975,7 +5004,7 @@ class TreeCtrl(_core.Control): return _controls_.TreeCtrl__setCallbackInfo(*args, **kwargs) def GetCount(*args, **kwargs): - """GetCount(self) -> size_t""" + """GetCount(self) -> unsigned int""" return _controls_.TreeCtrl_GetCount(*args, **kwargs) def GetIndent(*args, **kwargs): @@ -5847,6 +5876,8 @@ class HelpProvider(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self): raise AttributeError, "No constructor defined" __repr__ = _swig_repr + __swig_destroy__ = _controls_.delete_HelpProvider + __del__ = lambda self : None; def Set(*args, **kwargs): """ Set(HelpProvider helpProvider) -> HelpProvider