more wxGTK compatibility things.

It builds now but there are serious runtime problems...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1998-08-18 19:48:20 +00:00
parent eaf3cf57ed
commit fb5e0af035
12 changed files with 232 additions and 54 deletions

View File

@@ -370,17 +370,18 @@ class wxFrame(wxFramePtr):
_StdFrameCallbacks(self)
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(windowsc.new_wxMiniFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
_StdFrameCallbacks(self)
if wxPlatform == '__WXMSW__':
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(windowsc.new_wxMiniFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
_StdFrameCallbacks(self)
class wxPanel(wxPanelPtr):
@@ -603,17 +604,18 @@ class wxScrollBar(wxScrollBarPtr):
self.thisown = 1
_StdWindowCallbacks(self)
class wxSpinButton(wxSpinButtonPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxSpinButton,(arg0.this,)+args)
self.thisown = 1
_StdWindowCallbacks(self)
if wxPlatform == '__WXMSW__':
class wxSpinButton(wxSpinButtonPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxSpinButton,(arg0.this,)+args)
self.thisown = 1
_StdWindowCallbacks(self)
class wxStaticBitmap(wxStaticBitmapPtr):
def __init__(self,arg0,arg1,arg2,*args) :
@@ -716,7 +718,7 @@ wxPyDefaultSize.Set(-1,-1)
## self.isShown = false
_defRedirect = (wxPlatform == '__WIN32__')
_defRedirect = (wxPlatform == '__WXMSW__')
#----------------------------------------------------------------------
# The main application class. Derive from this and implement an OnInit
@@ -760,6 +762,11 @@ class wxApp(wxPyApp):
#----------------------------------------------------------------------------
#
# $Log$
# Revision 1.2 1998/08/18 19:48:12 RD
# more wxGTK compatibility things.
#
# It builds now but there are serious runtime problems...
#
# Revision 1.1 1998/08/09 08:25:49 RD
# Initial version
#