Zhao Dapu
2007-06-19 06:58:34 UTC
Hi, all
File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 1682
, in __init__
_core_.Rect2D_swiginit(self,_core_.new_Rect2D(*args, **kwargs))
TypeError: in method 'new_Rect2D', expected argument 1 of type 'wxDouble'
doesn't work? What is a wxDouble? I notice other methods require
wxDouble arguments in wx.GraphicContext can work well.
Thanks
import wx
rect = wx.Rect2D(1.0, 2.0, 3.0, 4.0)
---------------------------------------------------------------------------rect = wx.Rect2D(1.0, 2.0, 3.0, 4.0)
File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 1682
, in __init__
_core_.Rect2D_swiginit(self,_core_.new_Rect2D(*args, **kwargs))
TypeError: in method 'new_Rect2D', expected argument 1 of type 'wxDouble'
rect = wx.Rect2D() # OK!
rect.Set(1,2,3,4) # Same error as above
So, why? I use the wx.Point2D class without any problem. Why thisrect.Set(1,2,3,4) # Same error as above
doesn't work? What is a wxDouble? I notice other methods require
wxDouble arguments in wx.GraphicContext can work well.
Thanks