X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b26e2dc41d9f5b387897a6cc6fba58d6957fd5cd..6f63ec3f93070e6824da775cf8d2565a025c2406:/utils/wxPython/src/gtk/frames.py diff --git a/utils/wxPython/src/gtk/frames.py b/utils/wxPython/src/gtk/frames.py index 5add2b59d3..0a3796059f 100644 --- a/utils/wxPython/src/gtk/frames.py +++ b/utils/wxPython/src/gtk/frames.py @@ -12,7 +12,7 @@ from stattool import * from controls import * from events import * -import wxp +import wx class wxFramePtr(wxWindowPtr): def __init__(self,this): self.this = this @@ -52,6 +52,9 @@ class wxFramePtr(wxWindowPtr): def Maximize(self,arg0): val = framesc.wxFrame_Maximize(self.this,arg0) return val + def SetAcceleratorTable(self,arg0): + val = framesc.wxFrame_SetAcceleratorTable(self.this,arg0.this) + return val def SetIcon(self,arg0): val = framesc.wxFrame_SetIcon(self.this,arg0.this) return val @@ -85,7 +88,28 @@ class wxFrame(wxFramePtr): args = tuple(argl) self.this = apply(framesc.new_wxFrame,(arg0.this,arg1,arg2,)+args) self.thisown = 1 - wxp._StdFrameCallbacks(self) + wx._StdFrameCallbacks(self) + + + + +class wxMiniFramePtr(wxFramePtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" +class wxMiniFrame(wxMiniFramePtr): + 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_wxMiniFrame,(arg0.this,arg1,arg2,)+args) + self.thisown = 1 + wx._StdFrameCallbacks(self)