Added rotated text support
Added Some generic button and toggle button classes Lots of little fixes, additions, etc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -666,6 +666,8 @@ wxPyDefaultSize.Set(-1,-1)
|
||||
wxDefaultPosition = wxPyDefaultPosition
|
||||
wxDefaultSize = wxPyDefaultSize
|
||||
|
||||
# backwards compatibility
|
||||
wxNoRefBitmap = wxBitmap
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# This helper function will take a wxPython object and convert it to
|
||||
@@ -695,7 +697,8 @@ def wxPyTypeCast(obj, typeStr):
|
||||
newPtr = ptrcast(obj, typeStr+"_p")
|
||||
theClass = globals()[typeStr+"Ptr"]
|
||||
theObj = theClass(newPtr)
|
||||
theObj.thisown = obj.thisown
|
||||
if hasattr(obj, "this"):
|
||||
theObj.thisown = obj.thisown
|
||||
return theObj
|
||||
|
||||
|
||||
@@ -780,6 +783,13 @@ class wxApp(wxPyApp):
|
||||
if self.stdioWin != None:
|
||||
self.stdioWin.close()
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
class wxPySimpleApp(wxApp):
|
||||
def __init__(self):
|
||||
wxApp.__init__(self, 0)
|
||||
def OnInit(self):
|
||||
return true
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user