reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -502,6 +502,19 @@ class Choice(_core.ControlWithItems):
|
||||
"""
|
||||
return _controls_.Choice_Create(*args, **kwargs)
|
||||
|
||||
def GetCurrentSelection(*args, **kwargs):
|
||||
"""
|
||||
GetCurrentSelection(self) -> int
|
||||
|
||||
Unlike `GetSelection` which only returns the accepted selection value,
|
||||
i.e. the selection in the control once the user closes the dropdown
|
||||
list, this function returns the current selection. That is, while the
|
||||
dropdown list is shown, it returns the currently selected item in
|
||||
it. When it is not shown, its result is the same as for the other
|
||||
function.
|
||||
"""
|
||||
return _controls_.Choice_GetCurrentSelection(*args, **kwargs)
|
||||
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -689,6 +702,19 @@ class ComboBox(Choice):
|
||||
"""
|
||||
return _controls_.ComboBox_GetMark(*args, **kwargs)
|
||||
|
||||
def GetCurrentSelection(*args, **kwargs):
|
||||
"""
|
||||
GetCurrentSelection(self) -> int
|
||||
|
||||
Unlike `GetSelection` which only returns the accepted selection value,
|
||||
i.e. the selection in the control once the user closes the dropdown
|
||||
list, this function returns the current selection. That is, while the
|
||||
dropdown list is shown, it returns the currently selected item in
|
||||
it. When it is not shown, its result is the same as for the other
|
||||
function.
|
||||
"""
|
||||
return _controls_.ComboBox_GetCurrentSelection(*args, **kwargs)
|
||||
|
||||
def SetStringSelection(*args, **kwargs):
|
||||
"""
|
||||
SetStringSelection(self, String string) -> bool
|
||||
@@ -1167,6 +1193,17 @@ class StaticText(_core.Control):
|
||||
"""
|
||||
return _controls_.StaticText_Create(*args, **kwargs)
|
||||
|
||||
def Wrap(*args, **kwargs):
|
||||
"""
|
||||
Wrap(self, int width)
|
||||
|
||||
This functions wraps the control's label so that each of its lines
|
||||
becomes at most ``width`` pixels wide if possible (the lines are
|
||||
broken at words boundaries so it might not be the case if words are
|
||||
too long). If ``width`` is negative, no wrapping is done.
|
||||
"""
|
||||
return _controls_.StaticText_Wrap(*args, **kwargs)
|
||||
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -4730,6 +4767,14 @@ class ListCtrl(_core.Control):
|
||||
"""GetItemBackgroundColour(self, long item) -> Colour"""
|
||||
return _controls_.ListCtrl_GetItemBackgroundColour(*args, **kwargs)
|
||||
|
||||
def SetItemFont(*args, **kwargs):
|
||||
"""SetItemFont(self, long item, Font f)"""
|
||||
return _controls_.ListCtrl_SetItemFont(*args, **kwargs)
|
||||
|
||||
def GetItemFont(*args, **kwargs):
|
||||
"""GetItemFont(self, long item) -> Font"""
|
||||
return _controls_.ListCtrl_GetItemFont(*args, **kwargs)
|
||||
|
||||
#
|
||||
# Some helpers...
|
||||
def Select(self, idx, on=1):
|
||||
|
Reference in New Issue
Block a user