mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-21 13:26:08 +08:00
reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
+123
-27
@@ -502,31 +502,6 @@ class Choice(_core.ControlWithItems):
|
||||
"""
|
||||
return _controls_.Choice_Create(*args, **kwargs)
|
||||
|
||||
def SetSelection(*args, **kwargs):
|
||||
"""
|
||||
SetSelection(self, int n)
|
||||
|
||||
Select the n'th item (zero based) in the list.
|
||||
"""
|
||||
return _controls_.Choice_SetSelection(*args, **kwargs)
|
||||
|
||||
def SetStringSelection(*args, **kwargs):
|
||||
"""
|
||||
SetStringSelection(self, String string) -> bool
|
||||
|
||||
Select the item with the specifed string
|
||||
"""
|
||||
return _controls_.Choice_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_.Choice_SetString(*args, **kwargs)
|
||||
|
||||
Select = SetSelection
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -1376,7 +1351,8 @@ class ListBox(_core.ControlWithItems):
|
||||
"""
|
||||
Select(self, int n)
|
||||
|
||||
Sets the item at index 'n' to be the selected item.
|
||||
This is the same as `SetSelection` and exists only because it is
|
||||
slightly more natural for controls which support multiple selection.
|
||||
"""
|
||||
return _controls_.ListBox_Select(*args, **kwargs)
|
||||
|
||||
@@ -4755,7 +4731,7 @@ class ListCtrl(_core.Control):
|
||||
HitTest(Point point) -> (item, where)
|
||||
|
||||
Determines which item (if any) is at the specified point, giving
|
||||
in the second return value (see wxLIST_HITTEST_... flags.)
|
||||
in the second return value (see wx.LIST_HITTEST flags.)
|
||||
"""
|
||||
return _controls_.ListCtrl_HitTest(*args, **kwargs)
|
||||
|
||||
@@ -6359,4 +6335,124 @@ def DragListItem(*args, **kwargs):
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
DP_DEFAULT = _controls_.DP_DEFAULT
|
||||
DP_SPIN = _controls_.DP_SPIN
|
||||
DP_DROPDOWN = _controls_.DP_DROPDOWN
|
||||
DP_SHOWCENTURY = _controls_.DP_SHOWCENTURY
|
||||
DP_ALLOWNONE = _controls_.DP_ALLOWNONE
|
||||
class DatePickerCtrl(_core.Control):
|
||||
"""
|
||||
This control allows the user to select a date. Unlike
|
||||
`wx.calendar.CalendarCtrl`, which is a relatively big control,
|
||||
`wx.DatePickerCtrl` is implemented as a small window showing the
|
||||
currently selected date. The control can be edited using the keyboard,
|
||||
and can also display a popup window for more user-friendly date
|
||||
selection, depending on the styles used and the platform.
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxDatePickerCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DatePickerCtrlNameStr) -> DatePickerCtrl
|
||||
|
||||
Create a new DatePickerCtrl.
|
||||
"""
|
||||
newobj = _controls_.new_DatePickerCtrl(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DatePickerCtrlNameStr) -> bool
|
||||
|
||||
Create the GUI parts of the DatePickerCtrl, for use in 2-phase
|
||||
creation.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def SetValue(*args, **kwargs):
|
||||
"""
|
||||
SetValue(self, DateTime dt)
|
||||
|
||||
Changes the current value of the control. The date should be valid and
|
||||
included in the currently selected range, if any.
|
||||
|
||||
Calling this method does not result in a date change event.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_SetValue(*args, **kwargs)
|
||||
|
||||
def GetValue(*args, **kwargs):
|
||||
"""
|
||||
GetValue(self) -> DateTime
|
||||
|
||||
Returns the currently selected date. If there is no selection or the
|
||||
selection is outside of the current range, an invalid `wx.DateTime`
|
||||
object is returned.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_GetValue(*args, **kwargs)
|
||||
|
||||
def SetRange(*args, **kwargs):
|
||||
"""
|
||||
SetRange(self, DateTime dt1, DateTime dt2)
|
||||
|
||||
Sets the valid range for the date selection. If dt1 is valid, it
|
||||
becomes the earliest date (inclusive) accepted by the control. If dt2
|
||||
is valid, it becomes the latest possible date.
|
||||
|
||||
If the current value of the control is outside of the newly set range
|
||||
bounds, the behaviour is undefined.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_SetRange(*args, **kwargs)
|
||||
|
||||
def GetLowerLimit(*args, **kwargs):
|
||||
"""
|
||||
GetLowerLimit(self) -> DateTime
|
||||
|
||||
Get the lower limit of the valid range for the date selection, if any.
|
||||
If there is no range or there is no lower limit, then the
|
||||
`wx.DateTime` value returned will be invalid.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_GetLowerLimit(*args, **kwargs)
|
||||
|
||||
def GetUpperLimit(*args, **kwargs):
|
||||
"""
|
||||
GetUpperLimit(self) -> DateTime
|
||||
|
||||
Get the upper limit of the valid range for the date selection, if any.
|
||||
If there is no range or there is no upper limit, then the
|
||||
`wx.DateTime` value returned will be invalid.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_GetUpperLimit(*args, **kwargs)
|
||||
|
||||
|
||||
class DatePickerCtrlPtr(DatePickerCtrl):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = DatePickerCtrl
|
||||
_controls_.DatePickerCtrl_swigregister(DatePickerCtrlPtr)
|
||||
DatePickerCtrlNameStr = cvar.DatePickerCtrlNameStr
|
||||
|
||||
def PreDatePickerCtrl(*args, **kwargs):
|
||||
"""
|
||||
PreDatePickerCtrl() -> DatePickerCtrl
|
||||
|
||||
Precreate a DatePickerCtrl for use in 2-phase creation.
|
||||
"""
|
||||
val = _controls_.new_PreDatePickerCtrl(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
|
||||
+533
-154
File diff suppressed because one or more lines are too long
+65
-24
@@ -4788,6 +4788,35 @@ class PyCommandEventPtr(PyCommandEvent):
|
||||
self.__class__ = PyCommandEvent
|
||||
_core_.PyCommandEvent_swigregister(PyCommandEventPtr)
|
||||
|
||||
class DateEvent(CommandEvent):
|
||||
"""Proxy of C++ DateEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxDateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(self, Window win, DateTime dt, wxEventType type) -> DateEvent"""
|
||||
newobj = _core_.new_DateEvent(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def GetDate(*args, **kwargs):
|
||||
"""GetDate(self) -> DateTime"""
|
||||
return _core_.DateEvent_GetDate(*args, **kwargs)
|
||||
|
||||
def SetDate(*args, **kwargs):
|
||||
"""SetDate(self, DateTime date)"""
|
||||
return _core_.DateEvent_SetDate(*args, **kwargs)
|
||||
|
||||
|
||||
class DateEventPtr(DateEvent):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = DateEvent
|
||||
_core_.DateEvent_swigregister(DateEventPtr)
|
||||
|
||||
wxEVT_DATE_CHANGED = _core_.wxEVT_DATE_CHANGED
|
||||
EVT_DATE_CHANGED = wx.PyEventBinder( wxEVT_DATE_CHANGED, 1 )
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
PYAPP_ASSERT_SUPPRESS = _core_.PYAPP_ASSERT_SUPPRESS
|
||||
@@ -8803,10 +8832,10 @@ def Control_GetClassDefaultAttributes(*args, **kwargs):
|
||||
|
||||
class ItemContainer(object):
|
||||
"""
|
||||
wx.ItemContainer defines an interface which is implemented by all
|
||||
controls which have string subitems, each of which may be selected,
|
||||
such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well as
|
||||
`wx.ComboBox` which implements an extended interface deriving from
|
||||
The wx.ItemContainer class defines an interface which is implemented
|
||||
by all controls which have string subitems, each of which may be
|
||||
selected, such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well
|
||||
as `wx.ComboBox` which implements an extended interface deriving from
|
||||
this one.
|
||||
|
||||
It defines the methods for accessing the control's items and although
|
||||
@@ -8869,6 +8898,22 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_Delete(*args, **kwargs)
|
||||
|
||||
def GetClientData(*args, **kwargs):
|
||||
"""
|
||||
GetClientData(self, int n) -> PyObject
|
||||
|
||||
Returns the client data associated with the given item, (if any.)
|
||||
"""
|
||||
return _core_.ItemContainer_GetClientData(*args, **kwargs)
|
||||
|
||||
def SetClientData(*args, **kwargs):
|
||||
"""
|
||||
SetClientData(self, int n, PyObject clientData)
|
||||
|
||||
Associate the given client data with the item at position n.
|
||||
"""
|
||||
return _core_.ItemContainer_SetClientData(*args, **kwargs)
|
||||
|
||||
def GetCount(*args, **kwargs):
|
||||
"""
|
||||
GetCount(self) -> int
|
||||
@@ -8915,15 +8960,14 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_FindString(*args, **kwargs)
|
||||
|
||||
def Select(*args, **kwargs):
|
||||
def SetSelection(*args, **kwargs):
|
||||
"""
|
||||
Select(self, int n)
|
||||
SetSelection(self, int n)
|
||||
|
||||
Sets the item at index 'n' to be the selected item.
|
||||
"""
|
||||
return _core_.ItemContainer_Select(*args, **kwargs)
|
||||
return _core_.ItemContainer_SetSelection(*args, **kwargs)
|
||||
|
||||
SetSelection = Select
|
||||
def GetSelection(*args, **kwargs):
|
||||
"""
|
||||
GetSelection(self) -> int
|
||||
@@ -8933,6 +8977,10 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_GetSelection(*args, **kwargs)
|
||||
|
||||
def SetStringSelection(*args, **kwargs):
|
||||
"""SetStringSelection(self, String s) -> bool"""
|
||||
return _core_.ItemContainer_SetStringSelection(*args, **kwargs)
|
||||
|
||||
def GetStringSelection(*args, **kwargs):
|
||||
"""
|
||||
GetStringSelection(self) -> String
|
||||
@@ -8942,21 +8990,14 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_GetStringSelection(*args, **kwargs)
|
||||
|
||||
def GetClientData(*args, **kwargs):
|
||||
def Select(*args, **kwargs):
|
||||
"""
|
||||
GetClientData(self, int n) -> PyObject
|
||||
Select(self, int n)
|
||||
|
||||
Returns the client data associated with the given item, (if any.)
|
||||
This is the same as `SetSelection` and exists only because it is
|
||||
slightly more natural for controls which support multiple selection.
|
||||
"""
|
||||
return _core_.ItemContainer_GetClientData(*args, **kwargs)
|
||||
|
||||
def SetClientData(*args, **kwargs):
|
||||
"""
|
||||
SetClientData(self, int n, PyObject clientData)
|
||||
|
||||
Associate the given client data with the item at position n.
|
||||
"""
|
||||
return _core_.ItemContainer_SetClientData(*args, **kwargs)
|
||||
return _core_.ItemContainer_Select(*args, **kwargs)
|
||||
|
||||
|
||||
class ItemContainerPtr(ItemContainer):
|
||||
@@ -10152,7 +10193,7 @@ class StdDialogButtonSizer(BoxSizer):
|
||||
A special sizer that knows how to order and position standard buttons
|
||||
in order to conform to the current platform's standards. You simply
|
||||
need to add each `wx.Button` to the sizer, and be sure to create the
|
||||
buttons using the standard ID's. Then call `Finalize` and the sizer
|
||||
buttons using the standard ID's. Then call `Realize` and the sizer
|
||||
will take care of the rest.
|
||||
|
||||
"""
|
||||
@@ -10173,15 +10214,15 @@ class StdDialogButtonSizer(BoxSizer):
|
||||
"""
|
||||
return _core_.StdDialogButtonSizer_AddButton(*args, **kwargs)
|
||||
|
||||
def Finalise(*args, **kwargs):
|
||||
def Realize(*args, **kwargs):
|
||||
"""
|
||||
Finalise(self)
|
||||
Realize(self)
|
||||
|
||||
This funciton needs to be called after all the buttons have been added
|
||||
to the sizer. It will reorder them and position them in a platform
|
||||
specifc manner.
|
||||
"""
|
||||
return _core_.StdDialogButtonSizer_Finalise(*args, **kwargs)
|
||||
return _core_.StdDialogButtonSizer_Realize(*args, **kwargs)
|
||||
|
||||
def SetAffirmativeButton(*args, **kwargs):
|
||||
"""SetAffirmativeButton(self, wxButton button)"""
|
||||
|
||||
+329
-122
File diff suppressed because one or more lines are too long
@@ -1039,7 +1039,7 @@ def CursorFromImage(*args, **kwargs):
|
||||
CursorFromImage(Image image) -> Cursor
|
||||
|
||||
Constructs a cursor from a `wx.Image`. The mask (if any) will be used
|
||||
as transparent.
|
||||
for setting the transparent portions of the cursor.
|
||||
"""
|
||||
val = _gdi_.new_CursorFromImage(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -163,7 +163,7 @@ class CalendarDateAttrPtr(CalendarDateAttr):
|
||||
self.__class__ = CalendarDateAttr
|
||||
_calendar.CalendarDateAttr_swigregister(CalendarDateAttrPtr)
|
||||
|
||||
class CalendarEvent(_core.CommandEvent):
|
||||
class CalendarEvent(_core.DateEvent):
|
||||
"""Proxy of C++ CalendarEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxCalendarEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@@ -173,14 +173,6 @@ class CalendarEvent(_core.CommandEvent):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def GetDate(*args, **kwargs):
|
||||
"""GetDate(self) -> DateTime"""
|
||||
return _calendar.CalendarEvent_GetDate(*args, **kwargs)
|
||||
|
||||
def SetDate(*args, **kwargs):
|
||||
"""SetDate(self, DateTime date)"""
|
||||
return _calendar.CalendarEvent_SetDate(*args, **kwargs)
|
||||
|
||||
def SetWeekDay(*args, **kwargs):
|
||||
"""SetWeekDay(self, int wd)"""
|
||||
return _calendar.CalendarEvent_SetWeekDay(*args, **kwargs)
|
||||
@@ -239,7 +231,7 @@ class CalendarCtrl(_core.Control):
|
||||
SetAttr allows to modify its appearance. Just create a custom
|
||||
attribute object and set it for the day you want to be displayed
|
||||
specially A day may be marked as being a holiday, (even if it is not
|
||||
recognized as one by wx.DateTime) by using the SetHoliday method.
|
||||
recognized as one by `wx.DateTime`) by using the SetHoliday method.
|
||||
|
||||
As the attributes are specified for each day, they may change when the
|
||||
month is changed, so you will often want to update them in an
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1087,6 +1087,10 @@ class HtmlWindow(_windows.ScrolledWindow):
|
||||
"""SetBorders(self, int b)"""
|
||||
return _html.HtmlWindow_SetBorders(*args, **kwargs)
|
||||
|
||||
def SetBackgroundImage(*args, **kwargs):
|
||||
"""SetBackgroundImage(self, Bitmap bmpBg)"""
|
||||
return _html.HtmlWindow_SetBackgroundImage(*args, **kwargs)
|
||||
|
||||
def ReadCustomization(*args, **kwargs):
|
||||
"""ReadCustomization(self, ConfigBase cfg, String path=EmptyString)"""
|
||||
return _html.HtmlWindow_ReadCustomization(*args, **kwargs)
|
||||
|
||||
+381
-339
File diff suppressed because one or more lines are too long
@@ -120,14 +120,6 @@ class MediaCtrl(_core.Control):
|
||||
"""LoadFromURI(self, String location) -> bool"""
|
||||
return _media.MediaCtrl_LoadFromURI(*args, **kwargs)
|
||||
|
||||
def Loop(*args, **kwargs):
|
||||
"""Loop(self, bool bLoop=True)"""
|
||||
return _media.MediaCtrl_Loop(*args, **kwargs)
|
||||
|
||||
def IsLooped(*args, **kwargs):
|
||||
"""IsLooped(self) -> bool"""
|
||||
return _media.MediaCtrl_IsLooped(*args, **kwargs)
|
||||
|
||||
def GetState(*args, **kwargs):
|
||||
"""GetState(self) -> int"""
|
||||
return _media.MediaCtrl_GetState(*args, **kwargs)
|
||||
|
||||
+12
-135
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+125
-29
@@ -502,31 +502,6 @@ class Choice(_core.ControlWithItems):
|
||||
"""
|
||||
return _controls_.Choice_Create(*args, **kwargs)
|
||||
|
||||
def SetSelection(*args, **kwargs):
|
||||
"""
|
||||
SetSelection(self, int n)
|
||||
|
||||
Select the n'th item (zero based) in the list.
|
||||
"""
|
||||
return _controls_.Choice_SetSelection(*args, **kwargs)
|
||||
|
||||
def SetStringSelection(*args, **kwargs):
|
||||
"""
|
||||
SetStringSelection(self, String string) -> bool
|
||||
|
||||
Select the item with the specifed string
|
||||
"""
|
||||
return _controls_.Choice_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_.Choice_SetString(*args, **kwargs)
|
||||
|
||||
Select = SetSelection
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -1376,7 +1351,8 @@ class ListBox(_core.ControlWithItems):
|
||||
"""
|
||||
Select(self, int n)
|
||||
|
||||
Sets the item at index 'n' to be the selected item.
|
||||
This is the same as `SetSelection` and exists only because it is
|
||||
slightly more natural for controls which support multiple selection.
|
||||
"""
|
||||
return _controls_.ListBox_Select(*args, **kwargs)
|
||||
|
||||
@@ -3509,8 +3485,8 @@ class NotebookSizerPtr(NotebookSizer):
|
||||
self.__class__ = NotebookSizer
|
||||
_controls_.NotebookSizer_swigregister(NotebookSizerPtr)
|
||||
|
||||
NotebookSizer = wx._deprecated(NotebookSizer, "NotebookSizer is no longer needed.")
|
||||
BookCtrlSizer = wx._deprecated(BookCtrlSizer, "BookCtrlSizer is no longer needed.")
|
||||
NotebookSizer.__init__ = wx._deprecated(NotebookSizer.__init__, "NotebookSizer is no longer needed.")
|
||||
BookCtrlSizer.__init__ = wx._deprecated(BookCtrlSizer.__init__, "BookCtrlSizer is no longer needed.")
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
TOOL_STYLE_BUTTON = _controls_.TOOL_STYLE_BUTTON
|
||||
@@ -4751,7 +4727,7 @@ class ListCtrl(_core.Control):
|
||||
HitTest(Point point) -> (item, where)
|
||||
|
||||
Determines which item (if any) is at the specified point, giving
|
||||
in the second return value (see wxLIST_HITTEST_... flags.)
|
||||
in the second return value (see wx.LIST_HITTEST flags.)
|
||||
"""
|
||||
return _controls_.ListCtrl_HitTest(*args, **kwargs)
|
||||
|
||||
@@ -6355,4 +6331,124 @@ def DragListItem(*args, **kwargs):
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
DP_DEFAULT = _controls_.DP_DEFAULT
|
||||
DP_SPIN = _controls_.DP_SPIN
|
||||
DP_DROPDOWN = _controls_.DP_DROPDOWN
|
||||
DP_SHOWCENTURY = _controls_.DP_SHOWCENTURY
|
||||
DP_ALLOWNONE = _controls_.DP_ALLOWNONE
|
||||
class DatePickerCtrl(_core.Control):
|
||||
"""
|
||||
This control allows the user to select a date. Unlike
|
||||
`wx.calendar.CalendarCtrl`, which is a relatively big control,
|
||||
`wx.DatePickerCtrl` is implemented as a small window showing the
|
||||
currently selected date. The control can be edited using the keyboard,
|
||||
and can also display a popup window for more user-friendly date
|
||||
selection, depending on the styles used and the platform.
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxDatePickerCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DatePickerCtrlNameStr) -> DatePickerCtrl
|
||||
|
||||
Create a new DatePickerCtrl.
|
||||
"""
|
||||
newobj = _controls_.new_DatePickerCtrl(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DatePickerCtrlNameStr) -> bool
|
||||
|
||||
Create the GUI parts of the DatePickerCtrl, for use in 2-phase
|
||||
creation.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def SetValue(*args, **kwargs):
|
||||
"""
|
||||
SetValue(self, DateTime dt)
|
||||
|
||||
Changes the current value of the control. The date should be valid and
|
||||
included in the currently selected range, if any.
|
||||
|
||||
Calling this method does not result in a date change event.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_SetValue(*args, **kwargs)
|
||||
|
||||
def GetValue(*args, **kwargs):
|
||||
"""
|
||||
GetValue(self) -> DateTime
|
||||
|
||||
Returns the currently selected date. If there is no selection or the
|
||||
selection is outside of the current range, an invalid `wx.DateTime`
|
||||
object is returned.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_GetValue(*args, **kwargs)
|
||||
|
||||
def SetRange(*args, **kwargs):
|
||||
"""
|
||||
SetRange(self, DateTime dt1, DateTime dt2)
|
||||
|
||||
Sets the valid range for the date selection. If dt1 is valid, it
|
||||
becomes the earliest date (inclusive) accepted by the control. If dt2
|
||||
is valid, it becomes the latest possible date.
|
||||
|
||||
If the current value of the control is outside of the newly set range
|
||||
bounds, the behaviour is undefined.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_SetRange(*args, **kwargs)
|
||||
|
||||
def GetLowerLimit(*args, **kwargs):
|
||||
"""
|
||||
GetLowerLimit(self) -> DateTime
|
||||
|
||||
Get the lower limit of the valid range for the date selection, if any.
|
||||
If there is no range or there is no lower limit, then the
|
||||
`wx.DateTime` value returned will be invalid.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_GetLowerLimit(*args, **kwargs)
|
||||
|
||||
def GetUpperLimit(*args, **kwargs):
|
||||
"""
|
||||
GetUpperLimit(self) -> DateTime
|
||||
|
||||
Get the upper limit of the valid range for the date selection, if any.
|
||||
If there is no range or there is no upper limit, then the
|
||||
`wx.DateTime` value returned will be invalid.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_GetUpperLimit(*args, **kwargs)
|
||||
|
||||
|
||||
class DatePickerCtrlPtr(DatePickerCtrl):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = DatePickerCtrl
|
||||
_controls_.DatePickerCtrl_swigregister(DatePickerCtrlPtr)
|
||||
DatePickerCtrlNameStr = cvar.DatePickerCtrlNameStr
|
||||
|
||||
def PreDatePickerCtrl(*args, **kwargs):
|
||||
"""
|
||||
PreDatePickerCtrl() -> DatePickerCtrl
|
||||
|
||||
Precreate a DatePickerCtrl for use in 2-phase creation.
|
||||
"""
|
||||
val = _controls_.new_PreDatePickerCtrl(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
|
||||
+533
-154
File diff suppressed because one or more lines are too long
+65
-24
@@ -4788,6 +4788,35 @@ class PyCommandEventPtr(PyCommandEvent):
|
||||
self.__class__ = PyCommandEvent
|
||||
_core_.PyCommandEvent_swigregister(PyCommandEventPtr)
|
||||
|
||||
class DateEvent(CommandEvent):
|
||||
"""Proxy of C++ DateEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxDateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(self, Window win, DateTime dt, wxEventType type) -> DateEvent"""
|
||||
newobj = _core_.new_DateEvent(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def GetDate(*args, **kwargs):
|
||||
"""GetDate(self) -> DateTime"""
|
||||
return _core_.DateEvent_GetDate(*args, **kwargs)
|
||||
|
||||
def SetDate(*args, **kwargs):
|
||||
"""SetDate(self, DateTime date)"""
|
||||
return _core_.DateEvent_SetDate(*args, **kwargs)
|
||||
|
||||
|
||||
class DateEventPtr(DateEvent):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = DateEvent
|
||||
_core_.DateEvent_swigregister(DateEventPtr)
|
||||
|
||||
wxEVT_DATE_CHANGED = _core_.wxEVT_DATE_CHANGED
|
||||
EVT_DATE_CHANGED = wx.PyEventBinder( wxEVT_DATE_CHANGED, 1 )
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
PYAPP_ASSERT_SUPPRESS = _core_.PYAPP_ASSERT_SUPPRESS
|
||||
@@ -8803,10 +8832,10 @@ def Control_GetClassDefaultAttributes(*args, **kwargs):
|
||||
|
||||
class ItemContainer(object):
|
||||
"""
|
||||
wx.ItemContainer defines an interface which is implemented by all
|
||||
controls which have string subitems, each of which may be selected,
|
||||
such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well as
|
||||
`wx.ComboBox` which implements an extended interface deriving from
|
||||
The wx.ItemContainer class defines an interface which is implemented
|
||||
by all controls which have string subitems, each of which may be
|
||||
selected, such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well
|
||||
as `wx.ComboBox` which implements an extended interface deriving from
|
||||
this one.
|
||||
|
||||
It defines the methods for accessing the control's items and although
|
||||
@@ -8869,6 +8898,22 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_Delete(*args, **kwargs)
|
||||
|
||||
def GetClientData(*args, **kwargs):
|
||||
"""
|
||||
GetClientData(self, int n) -> PyObject
|
||||
|
||||
Returns the client data associated with the given item, (if any.)
|
||||
"""
|
||||
return _core_.ItemContainer_GetClientData(*args, **kwargs)
|
||||
|
||||
def SetClientData(*args, **kwargs):
|
||||
"""
|
||||
SetClientData(self, int n, PyObject clientData)
|
||||
|
||||
Associate the given client data with the item at position n.
|
||||
"""
|
||||
return _core_.ItemContainer_SetClientData(*args, **kwargs)
|
||||
|
||||
def GetCount(*args, **kwargs):
|
||||
"""
|
||||
GetCount(self) -> int
|
||||
@@ -8915,15 +8960,14 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_FindString(*args, **kwargs)
|
||||
|
||||
def Select(*args, **kwargs):
|
||||
def SetSelection(*args, **kwargs):
|
||||
"""
|
||||
Select(self, int n)
|
||||
SetSelection(self, int n)
|
||||
|
||||
Sets the item at index 'n' to be the selected item.
|
||||
"""
|
||||
return _core_.ItemContainer_Select(*args, **kwargs)
|
||||
return _core_.ItemContainer_SetSelection(*args, **kwargs)
|
||||
|
||||
SetSelection = Select
|
||||
def GetSelection(*args, **kwargs):
|
||||
"""
|
||||
GetSelection(self) -> int
|
||||
@@ -8933,6 +8977,10 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_GetSelection(*args, **kwargs)
|
||||
|
||||
def SetStringSelection(*args, **kwargs):
|
||||
"""SetStringSelection(self, String s) -> bool"""
|
||||
return _core_.ItemContainer_SetStringSelection(*args, **kwargs)
|
||||
|
||||
def GetStringSelection(*args, **kwargs):
|
||||
"""
|
||||
GetStringSelection(self) -> String
|
||||
@@ -8942,21 +8990,14 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_GetStringSelection(*args, **kwargs)
|
||||
|
||||
def GetClientData(*args, **kwargs):
|
||||
def Select(*args, **kwargs):
|
||||
"""
|
||||
GetClientData(self, int n) -> PyObject
|
||||
Select(self, int n)
|
||||
|
||||
Returns the client data associated with the given item, (if any.)
|
||||
This is the same as `SetSelection` and exists only because it is
|
||||
slightly more natural for controls which support multiple selection.
|
||||
"""
|
||||
return _core_.ItemContainer_GetClientData(*args, **kwargs)
|
||||
|
||||
def SetClientData(*args, **kwargs):
|
||||
"""
|
||||
SetClientData(self, int n, PyObject clientData)
|
||||
|
||||
Associate the given client data with the item at position n.
|
||||
"""
|
||||
return _core_.ItemContainer_SetClientData(*args, **kwargs)
|
||||
return _core_.ItemContainer_Select(*args, **kwargs)
|
||||
|
||||
|
||||
class ItemContainerPtr(ItemContainer):
|
||||
@@ -10152,7 +10193,7 @@ class StdDialogButtonSizer(BoxSizer):
|
||||
A special sizer that knows how to order and position standard buttons
|
||||
in order to conform to the current platform's standards. You simply
|
||||
need to add each `wx.Button` to the sizer, and be sure to create the
|
||||
buttons using the standard ID's. Then call `Finalize` and the sizer
|
||||
buttons using the standard ID's. Then call `Realize` and the sizer
|
||||
will take care of the rest.
|
||||
|
||||
"""
|
||||
@@ -10173,15 +10214,15 @@ class StdDialogButtonSizer(BoxSizer):
|
||||
"""
|
||||
return _core_.StdDialogButtonSizer_AddButton(*args, **kwargs)
|
||||
|
||||
def Finalise(*args, **kwargs):
|
||||
def Realize(*args, **kwargs):
|
||||
"""
|
||||
Finalise(self)
|
||||
Realize(self)
|
||||
|
||||
This funciton needs to be called after all the buttons have been added
|
||||
to the sizer. It will reorder them and position them in a platform
|
||||
specifc manner.
|
||||
"""
|
||||
return _core_.StdDialogButtonSizer_Finalise(*args, **kwargs)
|
||||
return _core_.StdDialogButtonSizer_Realize(*args, **kwargs)
|
||||
|
||||
def SetAffirmativeButton(*args, **kwargs):
|
||||
"""SetAffirmativeButton(self, wxButton button)"""
|
||||
|
||||
+329
-122
File diff suppressed because one or more lines are too long
@@ -1039,7 +1039,7 @@ def CursorFromImage(*args, **kwargs):
|
||||
CursorFromImage(Image image) -> Cursor
|
||||
|
||||
Constructs a cursor from a `wx.Image`. The mask (if any) will be used
|
||||
as transparent.
|
||||
for setting the transparent portions of the cursor.
|
||||
"""
|
||||
val = _gdi_.new_CursorFromImage(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -163,7 +163,7 @@ class CalendarDateAttrPtr(CalendarDateAttr):
|
||||
self.__class__ = CalendarDateAttr
|
||||
_calendar.CalendarDateAttr_swigregister(CalendarDateAttrPtr)
|
||||
|
||||
class CalendarEvent(_core.CommandEvent):
|
||||
class CalendarEvent(_core.DateEvent):
|
||||
"""Proxy of C++ CalendarEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxCalendarEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@@ -173,14 +173,6 @@ class CalendarEvent(_core.CommandEvent):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def GetDate(*args, **kwargs):
|
||||
"""GetDate(self) -> DateTime"""
|
||||
return _calendar.CalendarEvent_GetDate(*args, **kwargs)
|
||||
|
||||
def SetDate(*args, **kwargs):
|
||||
"""SetDate(self, DateTime date)"""
|
||||
return _calendar.CalendarEvent_SetDate(*args, **kwargs)
|
||||
|
||||
def SetWeekDay(*args, **kwargs):
|
||||
"""SetWeekDay(self, int wd)"""
|
||||
return _calendar.CalendarEvent_SetWeekDay(*args, **kwargs)
|
||||
@@ -239,7 +231,7 @@ class CalendarCtrl(_core.Control):
|
||||
SetAttr allows to modify its appearance. Just create a custom
|
||||
attribute object and set it for the day you want to be displayed
|
||||
specially A day may be marked as being a holiday, (even if it is not
|
||||
recognized as one by wx.DateTime) by using the SetHoliday method.
|
||||
recognized as one by `wx.DateTime`) by using the SetHoliday method.
|
||||
|
||||
As the attributes are specified for each day, they may change when the
|
||||
month is changed, so you will often want to update them in an
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1087,6 +1087,10 @@ class HtmlWindow(_windows.ScrolledWindow):
|
||||
"""SetBorders(self, int b)"""
|
||||
return _html.HtmlWindow_SetBorders(*args, **kwargs)
|
||||
|
||||
def SetBackgroundImage(*args, **kwargs):
|
||||
"""SetBackgroundImage(self, Bitmap bmpBg)"""
|
||||
return _html.HtmlWindow_SetBackgroundImage(*args, **kwargs)
|
||||
|
||||
def ReadCustomization(*args, **kwargs):
|
||||
"""ReadCustomization(self, ConfigBase cfg, String path=EmptyString)"""
|
||||
return _html.HtmlWindow_ReadCustomization(*args, **kwargs)
|
||||
|
||||
+385
-343
File diff suppressed because one or more lines are too long
@@ -120,14 +120,6 @@ class MediaCtrl(_core.Control):
|
||||
"""LoadFromURI(self, String location) -> bool"""
|
||||
return _media.MediaCtrl_LoadFromURI(*args, **kwargs)
|
||||
|
||||
def Loop(*args, **kwargs):
|
||||
"""Loop(self, bool bLoop=True)"""
|
||||
return _media.MediaCtrl_Loop(*args, **kwargs)
|
||||
|
||||
def IsLooped(*args, **kwargs):
|
||||
"""IsLooped(self) -> bool"""
|
||||
return _media.MediaCtrl_IsLooped(*args, **kwargs)
|
||||
|
||||
def GetState(*args, **kwargs):
|
||||
"""GetState(self) -> int"""
|
||||
return _media.MediaCtrl_GetState(*args, **kwargs)
|
||||
|
||||
+12
-135
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+123
-27
@@ -502,31 +502,6 @@ class Choice(_core.ControlWithItems):
|
||||
"""
|
||||
return _controls_.Choice_Create(*args, **kwargs)
|
||||
|
||||
def SetSelection(*args, **kwargs):
|
||||
"""
|
||||
SetSelection(self, int n)
|
||||
|
||||
Select the n'th item (zero based) in the list.
|
||||
"""
|
||||
return _controls_.Choice_SetSelection(*args, **kwargs)
|
||||
|
||||
def SetStringSelection(*args, **kwargs):
|
||||
"""
|
||||
SetStringSelection(self, String string) -> bool
|
||||
|
||||
Select the item with the specifed string
|
||||
"""
|
||||
return _controls_.Choice_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_.Choice_SetString(*args, **kwargs)
|
||||
|
||||
Select = SetSelection
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -1385,7 +1360,8 @@ class ListBox(_core.ControlWithItems):
|
||||
"""
|
||||
Select(self, int n)
|
||||
|
||||
Sets the item at index 'n' to be the selected item.
|
||||
This is the same as `SetSelection` and exists only because it is
|
||||
slightly more natural for controls which support multiple selection.
|
||||
"""
|
||||
return _controls_.ListBox_Select(*args, **kwargs)
|
||||
|
||||
@@ -4776,7 +4752,7 @@ class ListCtrl(_core.Control):
|
||||
HitTest(Point point) -> (item, where)
|
||||
|
||||
Determines which item (if any) is at the specified point, giving
|
||||
in the second return value (see wxLIST_HITTEST_... flags.)
|
||||
in the second return value (see wx.LIST_HITTEST flags.)
|
||||
"""
|
||||
return _controls_.ListCtrl_HitTest(*args, **kwargs)
|
||||
|
||||
@@ -6392,4 +6368,124 @@ def DragListItem(*args, **kwargs):
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
DP_DEFAULT = _controls_.DP_DEFAULT
|
||||
DP_SPIN = _controls_.DP_SPIN
|
||||
DP_DROPDOWN = _controls_.DP_DROPDOWN
|
||||
DP_SHOWCENTURY = _controls_.DP_SHOWCENTURY
|
||||
DP_ALLOWNONE = _controls_.DP_ALLOWNONE
|
||||
class DatePickerCtrl(_core.Control):
|
||||
"""
|
||||
This control allows the user to select a date. Unlike
|
||||
`wx.calendar.CalendarCtrl`, which is a relatively big control,
|
||||
`wx.DatePickerCtrl` is implemented as a small window showing the
|
||||
currently selected date. The control can be edited using the keyboard,
|
||||
and can also display a popup window for more user-friendly date
|
||||
selection, depending on the styles used and the platform.
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxDatePickerCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DatePickerCtrlNameStr) -> DatePickerCtrl
|
||||
|
||||
Create a new DatePickerCtrl.
|
||||
"""
|
||||
newobj = _controls_.new_DatePickerCtrl(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DatePickerCtrlNameStr) -> bool
|
||||
|
||||
Create the GUI parts of the DatePickerCtrl, for use in 2-phase
|
||||
creation.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def SetValue(*args, **kwargs):
|
||||
"""
|
||||
SetValue(self, DateTime dt)
|
||||
|
||||
Changes the current value of the control. The date should be valid and
|
||||
included in the currently selected range, if any.
|
||||
|
||||
Calling this method does not result in a date change event.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_SetValue(*args, **kwargs)
|
||||
|
||||
def GetValue(*args, **kwargs):
|
||||
"""
|
||||
GetValue(self) -> DateTime
|
||||
|
||||
Returns the currently selected date. If there is no selection or the
|
||||
selection is outside of the current range, an invalid `wx.DateTime`
|
||||
object is returned.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_GetValue(*args, **kwargs)
|
||||
|
||||
def SetRange(*args, **kwargs):
|
||||
"""
|
||||
SetRange(self, DateTime dt1, DateTime dt2)
|
||||
|
||||
Sets the valid range for the date selection. If dt1 is valid, it
|
||||
becomes the earliest date (inclusive) accepted by the control. If dt2
|
||||
is valid, it becomes the latest possible date.
|
||||
|
||||
If the current value of the control is outside of the newly set range
|
||||
bounds, the behaviour is undefined.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_SetRange(*args, **kwargs)
|
||||
|
||||
def GetLowerLimit(*args, **kwargs):
|
||||
"""
|
||||
GetLowerLimit(self) -> DateTime
|
||||
|
||||
Get the lower limit of the valid range for the date selection, if any.
|
||||
If there is no range or there is no lower limit, then the
|
||||
`wx.DateTime` value returned will be invalid.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_GetLowerLimit(*args, **kwargs)
|
||||
|
||||
def GetUpperLimit(*args, **kwargs):
|
||||
"""
|
||||
GetUpperLimit(self) -> DateTime
|
||||
|
||||
Get the upper limit of the valid range for the date selection, if any.
|
||||
If there is no range or there is no upper limit, then the
|
||||
`wx.DateTime` value returned will be invalid.
|
||||
"""
|
||||
return _controls_.DatePickerCtrl_GetUpperLimit(*args, **kwargs)
|
||||
|
||||
|
||||
class DatePickerCtrlPtr(DatePickerCtrl):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = DatePickerCtrl
|
||||
_controls_.DatePickerCtrl_swigregister(DatePickerCtrlPtr)
|
||||
DatePickerCtrlNameStr = cvar.DatePickerCtrlNameStr
|
||||
|
||||
def PreDatePickerCtrl(*args, **kwargs):
|
||||
"""
|
||||
PreDatePickerCtrl() -> DatePickerCtrl
|
||||
|
||||
Precreate a DatePickerCtrl for use in 2-phase creation.
|
||||
"""
|
||||
val = _controls_.new_PreDatePickerCtrl(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
|
||||
+533
-154
File diff suppressed because one or more lines are too long
+65
-24
@@ -4788,6 +4788,35 @@ class PyCommandEventPtr(PyCommandEvent):
|
||||
self.__class__ = PyCommandEvent
|
||||
_core_.PyCommandEvent_swigregister(PyCommandEventPtr)
|
||||
|
||||
class DateEvent(CommandEvent):
|
||||
"""Proxy of C++ DateEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxDateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(self, Window win, DateTime dt, wxEventType type) -> DateEvent"""
|
||||
newobj = _core_.new_DateEvent(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def GetDate(*args, **kwargs):
|
||||
"""GetDate(self) -> DateTime"""
|
||||
return _core_.DateEvent_GetDate(*args, **kwargs)
|
||||
|
||||
def SetDate(*args, **kwargs):
|
||||
"""SetDate(self, DateTime date)"""
|
||||
return _core_.DateEvent_SetDate(*args, **kwargs)
|
||||
|
||||
|
||||
class DateEventPtr(DateEvent):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = DateEvent
|
||||
_core_.DateEvent_swigregister(DateEventPtr)
|
||||
|
||||
wxEVT_DATE_CHANGED = _core_.wxEVT_DATE_CHANGED
|
||||
EVT_DATE_CHANGED = wx.PyEventBinder( wxEVT_DATE_CHANGED, 1 )
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
PYAPP_ASSERT_SUPPRESS = _core_.PYAPP_ASSERT_SUPPRESS
|
||||
@@ -8872,10 +8901,10 @@ def Control_GetClassDefaultAttributes(*args, **kwargs):
|
||||
|
||||
class ItemContainer(object):
|
||||
"""
|
||||
wx.ItemContainer defines an interface which is implemented by all
|
||||
controls which have string subitems, each of which may be selected,
|
||||
such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well as
|
||||
`wx.ComboBox` which implements an extended interface deriving from
|
||||
The wx.ItemContainer class defines an interface which is implemented
|
||||
by all controls which have string subitems, each of which may be
|
||||
selected, such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well
|
||||
as `wx.ComboBox` which implements an extended interface deriving from
|
||||
this one.
|
||||
|
||||
It defines the methods for accessing the control's items and although
|
||||
@@ -8938,6 +8967,22 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_Delete(*args, **kwargs)
|
||||
|
||||
def GetClientData(*args, **kwargs):
|
||||
"""
|
||||
GetClientData(self, int n) -> PyObject
|
||||
|
||||
Returns the client data associated with the given item, (if any.)
|
||||
"""
|
||||
return _core_.ItemContainer_GetClientData(*args, **kwargs)
|
||||
|
||||
def SetClientData(*args, **kwargs):
|
||||
"""
|
||||
SetClientData(self, int n, PyObject clientData)
|
||||
|
||||
Associate the given client data with the item at position n.
|
||||
"""
|
||||
return _core_.ItemContainer_SetClientData(*args, **kwargs)
|
||||
|
||||
def GetCount(*args, **kwargs):
|
||||
"""
|
||||
GetCount(self) -> int
|
||||
@@ -8984,15 +9029,14 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_FindString(*args, **kwargs)
|
||||
|
||||
def Select(*args, **kwargs):
|
||||
def SetSelection(*args, **kwargs):
|
||||
"""
|
||||
Select(self, int n)
|
||||
SetSelection(self, int n)
|
||||
|
||||
Sets the item at index 'n' to be the selected item.
|
||||
"""
|
||||
return _core_.ItemContainer_Select(*args, **kwargs)
|
||||
return _core_.ItemContainer_SetSelection(*args, **kwargs)
|
||||
|
||||
SetSelection = Select
|
||||
def GetSelection(*args, **kwargs):
|
||||
"""
|
||||
GetSelection(self) -> int
|
||||
@@ -9002,6 +9046,10 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_GetSelection(*args, **kwargs)
|
||||
|
||||
def SetStringSelection(*args, **kwargs):
|
||||
"""SetStringSelection(self, String s) -> bool"""
|
||||
return _core_.ItemContainer_SetStringSelection(*args, **kwargs)
|
||||
|
||||
def GetStringSelection(*args, **kwargs):
|
||||
"""
|
||||
GetStringSelection(self) -> String
|
||||
@@ -9011,21 +9059,14 @@ class ItemContainer(object):
|
||||
"""
|
||||
return _core_.ItemContainer_GetStringSelection(*args, **kwargs)
|
||||
|
||||
def GetClientData(*args, **kwargs):
|
||||
def Select(*args, **kwargs):
|
||||
"""
|
||||
GetClientData(self, int n) -> PyObject
|
||||
Select(self, int n)
|
||||
|
||||
Returns the client data associated with the given item, (if any.)
|
||||
This is the same as `SetSelection` and exists only because it is
|
||||
slightly more natural for controls which support multiple selection.
|
||||
"""
|
||||
return _core_.ItemContainer_GetClientData(*args, **kwargs)
|
||||
|
||||
def SetClientData(*args, **kwargs):
|
||||
"""
|
||||
SetClientData(self, int n, PyObject clientData)
|
||||
|
||||
Associate the given client data with the item at position n.
|
||||
"""
|
||||
return _core_.ItemContainer_SetClientData(*args, **kwargs)
|
||||
return _core_.ItemContainer_Select(*args, **kwargs)
|
||||
|
||||
|
||||
class ItemContainerPtr(ItemContainer):
|
||||
@@ -10221,7 +10262,7 @@ class StdDialogButtonSizer(BoxSizer):
|
||||
A special sizer that knows how to order and position standard buttons
|
||||
in order to conform to the current platform's standards. You simply
|
||||
need to add each `wx.Button` to the sizer, and be sure to create the
|
||||
buttons using the standard ID's. Then call `Finalize` and the sizer
|
||||
buttons using the standard ID's. Then call `Realize` and the sizer
|
||||
will take care of the rest.
|
||||
|
||||
"""
|
||||
@@ -10242,15 +10283,15 @@ class StdDialogButtonSizer(BoxSizer):
|
||||
"""
|
||||
return _core_.StdDialogButtonSizer_AddButton(*args, **kwargs)
|
||||
|
||||
def Finalise(*args, **kwargs):
|
||||
def Realize(*args, **kwargs):
|
||||
"""
|
||||
Finalise(self)
|
||||
Realize(self)
|
||||
|
||||
This funciton needs to be called after all the buttons have been added
|
||||
to the sizer. It will reorder them and position them in a platform
|
||||
specifc manner.
|
||||
"""
|
||||
return _core_.StdDialogButtonSizer_Finalise(*args, **kwargs)
|
||||
return _core_.StdDialogButtonSizer_Realize(*args, **kwargs)
|
||||
|
||||
def SetAffirmativeButton(*args, **kwargs):
|
||||
"""SetAffirmativeButton(self, wxButton button)"""
|
||||
|
||||
+329
-122
File diff suppressed because one or more lines are too long
@@ -1127,7 +1127,7 @@ def CursorFromImage(*args, **kwargs):
|
||||
CursorFromImage(Image image) -> Cursor
|
||||
|
||||
Constructs a cursor from a `wx.Image`. The mask (if any) will be used
|
||||
as transparent.
|
||||
for setting the transparent portions of the cursor.
|
||||
"""
|
||||
val = _gdi_.new_CursorFromImage(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -163,7 +163,7 @@ class CalendarDateAttrPtr(CalendarDateAttr):
|
||||
self.__class__ = CalendarDateAttr
|
||||
_calendar.CalendarDateAttr_swigregister(CalendarDateAttrPtr)
|
||||
|
||||
class CalendarEvent(_core.CommandEvent):
|
||||
class CalendarEvent(_core.DateEvent):
|
||||
"""Proxy of C++ CalendarEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxCalendarEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@@ -173,14 +173,6 @@ class CalendarEvent(_core.CommandEvent):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def GetDate(*args, **kwargs):
|
||||
"""GetDate(self) -> DateTime"""
|
||||
return _calendar.CalendarEvent_GetDate(*args, **kwargs)
|
||||
|
||||
def SetDate(*args, **kwargs):
|
||||
"""SetDate(self, DateTime date)"""
|
||||
return _calendar.CalendarEvent_SetDate(*args, **kwargs)
|
||||
|
||||
def SetWeekDay(*args, **kwargs):
|
||||
"""SetWeekDay(self, int wd)"""
|
||||
return _calendar.CalendarEvent_SetWeekDay(*args, **kwargs)
|
||||
@@ -239,7 +231,7 @@ class CalendarCtrl(_core.Control):
|
||||
SetAttr allows to modify its appearance. Just create a custom
|
||||
attribute object and set it for the day you want to be displayed
|
||||
specially A day may be marked as being a holiday, (even if it is not
|
||||
recognized as one by wx.DateTime) by using the SetHoliday method.
|
||||
recognized as one by `wx.DateTime`) by using the SetHoliday method.
|
||||
|
||||
As the attributes are specified for each day, they may change when the
|
||||
month is changed, so you will often want to update them in an
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1087,6 +1087,10 @@ class HtmlWindow(_windows.ScrolledWindow):
|
||||
"""SetBorders(self, int b)"""
|
||||
return _html.HtmlWindow_SetBorders(*args, **kwargs)
|
||||
|
||||
def SetBackgroundImage(*args, **kwargs):
|
||||
"""SetBackgroundImage(self, Bitmap bmpBg)"""
|
||||
return _html.HtmlWindow_SetBackgroundImage(*args, **kwargs)
|
||||
|
||||
def ReadCustomization(*args, **kwargs):
|
||||
"""ReadCustomization(self, ConfigBase cfg, String path=EmptyString)"""
|
||||
return _html.HtmlWindow_ReadCustomization(*args, **kwargs)
|
||||
|
||||
+381
-339
File diff suppressed because one or more lines are too long
@@ -120,14 +120,6 @@ class MediaCtrl(_core.Control):
|
||||
"""LoadFromURI(self, String location) -> bool"""
|
||||
return _media.MediaCtrl_LoadFromURI(*args, **kwargs)
|
||||
|
||||
def Loop(*args, **kwargs):
|
||||
"""Loop(self, bool bLoop=True)"""
|
||||
return _media.MediaCtrl_Loop(*args, **kwargs)
|
||||
|
||||
def IsLooped(*args, **kwargs):
|
||||
"""IsLooped(self) -> bool"""
|
||||
return _media.MediaCtrl_IsLooped(*args, **kwargs)
|
||||
|
||||
def GetState(*args, **kwargs):
|
||||
"""GetState(self) -> int"""
|
||||
return _media.MediaCtrl_GetState(*args, **kwargs)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user