Fixed missing import
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
%import misc.i
|
||||
%import fonts.i
|
||||
|
||||
%pragma(python) code = "import wx"
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
%{
|
||||
@@ -370,7 +371,7 @@ public:
|
||||
%pragma(python) addtoclass = "asTuple = Get
|
||||
def __str__(self): return str(self.asTuple())
|
||||
def __repr__(self): return str(self.asTuple())
|
||||
def __nonzero__(self): return self.asTuple() != (0,0,0)
|
||||
def __nonzero__(self): return self.Ok()
|
||||
"
|
||||
|
||||
};
|
||||
|
@@ -4,6 +4,7 @@ import gdic
|
||||
from misc import *
|
||||
|
||||
from fonts import *
|
||||
import wx
|
||||
class wxGDIObjectPtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -261,7 +262,7 @@ class wxColourPtr(wxObjectPtr):
|
||||
asTuple = Get
|
||||
def __str__(self): return str(self.asTuple())
|
||||
def __repr__(self): return str(self.asTuple())
|
||||
def __nonzero__(self): return self.asTuple() != (0,0,0)
|
||||
def __nonzero__(self): return self.Ok()
|
||||
|
||||
class wxColour(wxColourPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
|
Reference in New Issue
Block a user