wxPython 0.5.2

Minor fixes and SWIG code generation for RR's changes.  MSW and GTK
versions are much closer now!


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1998-12-17 17:53:33 +00:00
parent 6fbf0513e0
commit c95e68d8c7
17 changed files with 1453 additions and 78 deletions

View File

@@ -273,6 +273,15 @@ class wxBrushPtr :
def Ok(self):
val = gdic.wxBrush_Ok(self.this)
return val
def SetColour(self,arg0):
val = gdic.wxBrush_SetColour(self.this,arg0.this)
return val
def SetStipple(self,arg0):
val = gdic.wxBrush_SetStipple(self.this,arg0.this)
return val
def SetStyle(self,arg0):
val = gdic.wxBrush_SetStyle(self.this,arg0)
return val
def __repr__(self):
return "<C wxBrush instance>"
class wxBrush(wxBrushPtr):
@@ -380,12 +389,10 @@ class wxDCPtr :
def GetBackground(self):
val = gdic.wxDC_GetBackground(self.this)
val = wxBrushPtr(val)
val.thisown = 1
return val
def GetBrush(self):
val = gdic.wxDC_GetBrush(self.this)
val = wxBrushPtr(val)
val.thisown = 1
return val
def GetCharHeight(self):
val = gdic.wxDC_GetCharHeight(self.this)
@@ -399,7 +406,6 @@ class wxDCPtr :
def GetFont(self):
val = gdic.wxDC_GetFont(self.this)
val = wxFontPtr(val)
val.thisown = 1
return val
def GetLogicalFunction(self):
val = gdic.wxDC_GetLogicalFunction(self.this)
@@ -413,7 +419,6 @@ class wxDCPtr :
def GetPen(self):
val = gdic.wxDC_GetPen(self.this)
val = wxPenPtr(val)
val.thisown = 1
return val
def GetPixel(self,arg0,arg1):
val = gdic.wxDC_GetPixel(self.this,arg0,arg1)
@@ -593,6 +598,20 @@ class wxPaintDC(wxPaintDCPtr):
class wxWindowDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxWindowDC instance>"
class wxWindowDC(wxWindowDCPtr):
def __init__(self,arg0) :
self.this = gdic.new_wxWindowDC(arg0.this)
self.thisown = 1
class wxPostScriptDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this