else:
return win.ConvertDialogSizeToPixels(wxSize(size_width, height))
-class wxEvtHandlerPtr :
+class wxEvtHandlerPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetNextHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxEvtHandler_GetNextHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def GetPreviousHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxEvtHandler_GetPreviousHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def SetNextHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxEvtHandler_SetNextHandler,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxEvtHandler instance at %s>" % (self.this,)
-
- _prop_list_ = {}
-
class wxEvtHandler(wxEvtHandlerPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(windowsc.new_wxEvtHandler,_args,_kwargs)
self.thisown = 0
def Clone(self, *_args, **_kwargs):
val = apply(windowsc.wxValidator_Clone,(self,) + _args, _kwargs)
- if val: val = wxValidatorPtr(val)
return val
def GetWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxValidator_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def SetWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxValidator_SetWindow,(self,) + _args, _kwargs)
def __init__(self,this):
self.this = this
self.thisown = 0
- def Destroy(self, *_args, **_kwargs):
- val = apply(windowsc.wxPyValidator_Destroy,(self,) + _args, _kwargs)
- return val
def _setSelf(self, *_args, **_kwargs):
val = apply(windowsc.wxPyValidator__setSelf,(self,) + _args, _kwargs)
return val
def __init__(self,*_args,**_kwargs):
self.this = apply(windowsc.new_wxPyValidator,_args,_kwargs)
self.thisown = 1
- self._setSelf(self, wxPyValidator, 0)
+ self._setSelf(self, wxPyValidator, 1)
return val
def FindWindowById(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_FindWindowById,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def FindWindowByName(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_FindWindowByName,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def Fit(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_Fit,(self,) + _args, _kwargs)
return val
def GetEventHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetEventHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def GetFont(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs)
return val
def GetGrandParent(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetGrandParent,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetHandle(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetHandle,(self,) + _args, _kwargs)
return val
def GetParent(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetParent,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetPositionTuple(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetPositionTuple,(self,) + _args, _kwargs)
return val
def PopEventHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_PopEventHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def PushEventHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_PushEventHandler,(self,) + _args, _kwargs)
return val
def GetToolTip(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs)
- if val: val = wxToolTipPtr(val)
return val
def SetSizer(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_SetSizer,(self,) + _args, _kwargs)
return val
def GetSizer(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetSizer,(self,) + _args, _kwargs)
- if val: val = wxSizerPtr(val)
return val
def GetValidator(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetValidator,(self,) + _args, _kwargs)
- if val: val = wxValidatorPtr(val)
return val
def SetValidator(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_SetValidator,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxWindow instance at %s>" % (self.this,)
- # replaces broken shadow methods
+ # replaces broken shadow method
def GetCaret(self, *_args, **_kwargs):
from misc2 import wxCaretPtr
val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
if val: val = wxCaretPtr(val)
return val
-
- def GetSizer(self, *_args, **_kwargs):
- from sizers import wxSizerPtr
- val = apply(windowsc.wxWindow_GetSizer,(self,) + _args, _kwargs)
- if val: val = wxSizerPtr(val)
- return val
-
- def GetToolTip(self, *_args, **_kwargs):
- from misc2 import wxToolTipPtr
- val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs)
- if val: val = wxToolTipPtr(val)
- return val
class wxWindow(wxWindowPtr):
def __init__(self,*_args,**_kwargs):
return val
def GetDefaultItem(self, *_args, **_kwargs):
val = apply(windowsc.wxPanel_GetDefaultItem,(self,) + _args, _kwargs)
- if val: val = wxButtonPtr(val)
return val
def SetDefaultItem(self, *_args, **_kwargs):
val = apply(windowsc.wxPanel_SetDefaultItem,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxPanel instance at %s>" % (self.this,)
-
- def GetDefaultItem(self):
- import controls
- val = windowsc.wxPanel_GetDefaultItem(self.this)
- val = controls.wxButtonPtr(val)
- return val
-
class wxPanel(wxPanelPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(windowsc.new_wxPanel,_args,_kwargs)
return val
def CreateTextSizer(self, *_args, **_kwargs):
val = apply(windowsc.wxDialog_CreateTextSizer,(self,) + _args, _kwargs)
- if val: val = wxSizerPtr(val)
return val
def CreateButtonSizer(self, *_args, **_kwargs):
val = apply(windowsc.wxDialog_CreateButtonSizer,(self,) + _args, _kwargs)
- if val: val = wxSizerPtr(val)
return val
def __repr__(self):
return "<C wxDialog instance at %s>" % (self.this,)
-
- # replace swig generated shadow methods to resolve import issues
- def CreateTextSizer(self, *_args, **_kwargs):
- import sizers
- val = apply(windowsc.wxDialog_CreateTextSizer,(self,) + _args, _kwargs)
- if val: val = sizers.wxSizerPtr(val)
- return val
- def CreateButtonSizer(self, *_args, **_kwargs):
- import sizers
- val = apply(windowsc.wxDialog_CreateButtonSizer,(self,) + _args, _kwargs)
- if val: val = sizers.wxSizerPtr(val)
- return val
-
class wxDialog(wxDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(windowsc.new_wxDialog,_args,_kwargs)
return val
def GetTargetWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxScrolledWindow_GetTargetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetVirtualSize(self, *_args, **_kwargs):
val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs)
def CalcUnscrolledPosition(self, *_args, **_kwargs):
val = apply(windowsc.wxScrolledWindow_CalcUnscrolledPosition,(self,) + _args, _kwargs)
return val
+ def SetScale(self, *_args, **_kwargs):
+ val = apply(windowsc.wxScrolledWindow_SetScale,(self,) + _args, _kwargs)
+ return val
+ def GetScaleX(self, *_args, **_kwargs):
+ val = apply(windowsc.wxScrolledWindow_GetScaleX,(self,) + _args, _kwargs)
+ return val
+ def GetScaleY(self, *_args, **_kwargs):
+ val = apply(windowsc.wxScrolledWindow_GetScaleY,(self,) + _args, _kwargs)
+ return val
+ def AdjustScrollbars(self, *_args, **_kwargs):
+ val = apply(windowsc.wxScrolledWindow_AdjustScrollbars,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxScrolledWindow instance at %s>" % (self.this,)
class wxScrolledWindow(wxScrolledWindowPtr):
return val
def FindItemById(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_FindItemById,(self,) + _args, _kwargs)
- if val: val = wxMenuItemPtr(val)
return val
def GetTitle(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetTitle,(self,) + _args, _kwargs)
return val
def Remove(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_Remove,(self,) + _args, _kwargs)
- if val: val = wxMenuItemPtr(val)
return val
def RemoveItem(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_RemoveItem,(self,) + _args, _kwargs)
- if val: val = wxMenuItemPtr(val)
return val
def Destroy(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs)
return val
def GetEventHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetEventHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def SetInvokingWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_SetInvokingWindow,(self,) + _args, _kwargs)
return val
def GetInvokingWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetInvokingWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetStyle(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetStyle,(self,) + _args, _kwargs)
return val
def GetParent(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetParent,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def __repr__(self):
return "<C wxMenu instance at %s>" % (self.this,)
return val
def GetMenu(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def Replace(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_Replace,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def Remove(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_Remove,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def EnableTop(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs)
return val
def FindItemById(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_FindItemById,(self,) + _args, _kwargs)
- if val: val = wxMenuItemPtr(val)
return val
def Enable(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs)
-class wxMenuItemPtr :
+class wxMenuItemPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetMenu(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_GetMenu,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def SetId(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_SetId,(self,) + _args, _kwargs)
return val
def GetSubMenu(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_GetSubMenu,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def Enable(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs)
#-------------- FUNCTION WRAPPERS ------------------
-wxValidator_IsSilent = windowsc.wxValidator_IsSilent
-
-wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError
-
def wxWindow_FindFocus(*_args, **_kwargs):
val = apply(windowsc.wxWindow_FindFocus,_args,_kwargs)
- if val: val = wxWindowPtr(val)
return val
wxWindow_NewControlId = windowsc.wxWindow_NewControlId
wxWindow_PrevControlId = windowsc.wxWindow_PrevControlId
+wxValidator_IsSilent = windowsc.wxValidator_IsSilent
+
+wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError
+
wxMenuItem_GetLabelFromText = windowsc.wxMenuItem_GetLabelFromText