X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70551f4702bfdd1796be68bc4c24503d229a05c5..7cacdad3e207702975dfd320efcc0ca359ee1bcf:/utils/wxPython/src/gtk/windows.py?ds=inline diff --git a/utils/wxPython/src/gtk/windows.py b/utils/wxPython/src/gtk/windows.py index e334d32867..b05195b3d5 100644 --- a/utils/wxPython/src/gtk/windows.py +++ b/utils/wxPython/src/gtk/windows.py @@ -4,6 +4,7 @@ import windowsc from misc import * from gdi import * +import wxp class wxEvtHandlerPtr : def __init__(self,this): self.this = this @@ -264,66 +265,7 @@ class wxWindow(wxWindowPtr): args = tuple(argl) self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args) self.thisown = 1 - - - - -class wxFramePtr(wxWindowPtr): - def __init__(self,this): - self.this = this - self.thisown = 0 - def Centre(self,*args): - val = apply(windowsc.wxFrame_Centre,(self.this,)+args) - return val - def CreateStatusBar(self,*args): - val = apply(windowsc.wxFrame_CreateStatusBar,(self.this,)+args) - return val - def GetMenuBar(self): - val = windowsc.wxFrame_GetMenuBar(self.this) - val = wxMenuBarPtr(val) - return val - def GetStatusBar(self): - val = windowsc.wxFrame_GetStatusBar(self.this) - return val - def GetTitle(self): - val = windowsc.wxFrame_GetTitle(self.this) - return val - def Iconize(self,arg0): - val = windowsc.wxFrame_Iconize(self.this,arg0) - return val - def IsIconized(self): - val = windowsc.wxFrame_IsIconized(self.this) - return val - def Maximize(self,arg0): - val = windowsc.wxFrame_Maximize(self.this,arg0) - return val - def SetIcon(self,arg0): - val = windowsc.wxFrame_SetIcon(self.this,arg0.this) - return val - def SetMenuBar(self,arg0): - val = windowsc.wxFrame_SetMenuBar(self.this,arg0.this) - return val - def SetStatusText(self,arg0,*args): - val = apply(windowsc.wxFrame_SetStatusText,(self.this,arg0,)+args) - return val - def SetStatusWidths(self,arg0,*args): - val = apply(windowsc.wxFrame_SetStatusWidths,(self.this,arg0,)+args) - return val - def SetTitle(self,arg0): - val = windowsc.wxFrame_SetTitle(self.this,arg0) - return val - def __repr__(self): - return "" -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(windowsc.new_wxFrame,(arg0.this,arg1,arg2,)+args) - self.thisown = 1 + wxp._StdWindowCallbacks(self) @@ -347,6 +289,7 @@ class wxPanel(wxPanelPtr): args = tuple(argl) self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args) self.thisown = 1 + wxp._StdWindowCallbacks(self) @@ -397,6 +340,7 @@ class wxDialog(wxDialogPtr): args = tuple(argl) self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args) self.thisown = 1 + wxp._StdDialogCallbacks(self) @@ -441,6 +385,8 @@ class wxScrolledWindow(wxScrolledWindowPtr): args = tuple(argl) self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args) self.thisown = 1 + wxp._StdWindowCallbacks(self) + wxp._StdOnScrollCallbacks(self)