X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b26e2dc41d9f5b387897a6cc6fba58d6957fd5cd..18ba9da6b94a34129b6b04494033905a213a0114:/utils/wxPython/src/gtk/frames.py diff --git a/utils/wxPython/src/gtk/frames.py b/utils/wxPython/src/gtk/frames.py index 5add2b59d3..35fde350e1 100644 --- a/utils/wxPython/src/gtk/frames.py +++ b/utils/wxPython/src/gtk/frames.py @@ -12,80 +12,92 @@ from stattool import * from controls import * from events import * -import wxp +import wx class wxFramePtr(wxWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 - def Centre(self,*args): - val = apply(framesc.wxFrame_Centre,(self.this,)+args) + def Centre(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_Centre,(self,) + _args, _kwargs) return val - def CreateStatusBar(self,*args): - val = apply(framesc.wxFrame_CreateStatusBar,(self.this,)+args) - val = wxStatusBarPtr(val) + def CreateStatusBar(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_CreateStatusBar,(self,) + _args, _kwargs) + if val: val = wxStatusBarPtr(val) return val - def CreateToolBar(self,*args): - val = apply(framesc.wxFrame_CreateToolBar,(self.this,)+args) - val = wxToolBarPtr(val) + def CreateToolBar(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs) + if val: val = wxToolBarPtr(val) return val - def GetMenuBar(self): - val = framesc.wxFrame_GetMenuBar(self.this) - val = wxMenuBarPtr(val) + def GetMenuBar(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_GetMenuBar,(self,) + _args, _kwargs) + if val: val = wxMenuBarPtr(val) return val - def GetStatusBar(self): - val = framesc.wxFrame_GetStatusBar(self.this) - val = wxStatusBarPtr(val) + def GetStatusBar(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_GetStatusBar,(self,) + _args, _kwargs) + if val: val = wxStatusBarPtr(val) return val - def GetTitle(self): - val = framesc.wxFrame_GetTitle(self.this) + def GetTitle(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_GetTitle,(self,) + _args, _kwargs) return val - def GetToolBar(self): - val = framesc.wxFrame_GetToolBar(self.this) - val = wxToolBarPtr(val) + def GetToolBar(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_GetToolBar,(self,) + _args, _kwargs) + if val: val = wxToolBarPtr(val) return val - def Iconize(self,arg0): - val = framesc.wxFrame_Iconize(self.this,arg0) + def Iconize(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_Iconize,(self,) + _args, _kwargs) return val - def IsIconized(self): - val = framesc.wxFrame_IsIconized(self.this) + def IsIconized(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_IsIconized,(self,) + _args, _kwargs) return val - def Maximize(self,arg0): - val = framesc.wxFrame_Maximize(self.this,arg0) + def Maximize(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_Maximize,(self,) + _args, _kwargs) return val - def SetIcon(self,arg0): - val = framesc.wxFrame_SetIcon(self.this,arg0.this) + def SetAcceleratorTable(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SetAcceleratorTable,(self,) + _args, _kwargs) return val - def SetMenuBar(self,arg0): - val = framesc.wxFrame_SetMenuBar(self.this,arg0.this) + def SetIcon(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SetIcon,(self,) + _args, _kwargs) return val - def SetStatusBar(self,arg0): - val = framesc.wxFrame_SetStatusBar(self.this,arg0.this) + def SetMenuBar(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SetMenuBar,(self,) + _args, _kwargs) return val - def SetStatusText(self,arg0,*args): - val = apply(framesc.wxFrame_SetStatusText,(self.this,arg0,)+args) + def SetStatusBar(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SetStatusBar,(self,) + _args, _kwargs) return val - def SetStatusWidths(self,arg0,*args): - val = apply(framesc.wxFrame_SetStatusWidths,(self.this,arg0,)+args) + def SetStatusText(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SetStatusText,(self,) + _args, _kwargs) return val - def SetTitle(self,arg0): - val = framesc.wxFrame_SetTitle(self.this,arg0) + def SetStatusWidths(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SetStatusWidths,(self,) + _args, _kwargs) return val - def SetToolBar(self,arg0): - val = framesc.wxFrame_SetToolBar(self.this,arg0.this) + def SetTitle(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SetTitle,(self,) + _args, _kwargs) + return val + def SetToolBar(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs) return val def __repr__(self): - return "" + return "" % (self.this,) class wxFrame(wxFramePtr): - def __init__(self,arg0,arg1,arg2,*args) : - argl = map(None,args) - try: argl[0] = argl[0].this - except: pass - try: argl[1] = argl[1].this - except: pass - args = tuple(argl) - self.this = apply(framesc.new_wxFrame,(arg0.this,arg1,arg2,)+args) + def __init__(self,*_args,**_kwargs): + self.this = apply(framesc.new_wxFrame,_args,_kwargs) + self.thisown = 1 + wx._StdFrameCallbacks(self) + + + + +class wxMiniFramePtr(wxFramePtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" % (self.this,) +class wxMiniFrame(wxMiniFramePtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(framesc.new_wxMiniFrame,_args,_kwargs) self.thisown = 1 - wxp._StdFrameCallbacks(self) + wx._StdFrameCallbacks(self)