[wxPython] glcanvas problem

Hello to all,

I tried the following :

Python 2.2 (#2, Jan 24 2002, 20:45:21)
[GCC 2.95.3 20010315 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from wxPython.glcanvas import *

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/wxPython/glcanvas.py", line 6, in ?
    from misc2 import *
  File "/usr/lib/python2.2/site-packages/wxPython/misc2.py", line 4, in ?
    from windows import *
  File "/usr/lib/python2.2/site-packages/wxPython/windows.py", line 8, in ?
    from clip_dnd import *
  File "/usr/lib/python2.2/site-packages/wxPython/clip_dnd.py", line 7, in ?
    import wx
  File "/usr/lib/python2.2/site-packages/wxPython/wx.py", line 20, in ?
    from mdi import *
  File "/usr/lib/python2.2/site-packages/wxPython/mdi.py", line 12, in ?
    from frames import *
  File "/usr/lib/python2.2/site-packages/wxPython/frames.py", line 12, in ?
    from stattool import *
  File "/usr/lib/python2.2/site-packages/wxPython/stattool.py", line 12, in ?
    from controls import *
  File "/usr/lib/python2.2/site-packages/wxPython/controls.py", line 14, in ?
    class wxControlPtr(wxWindowPtr):
NameError: name 'wxWindowPtr' is not defined

I use WxGTK and wxPython 2.3.2.1

Is this a known bug on wxPython-2.3.2.1

···

--
/-------------------------\

Papagrigoriou Nikolaos |
Alternative e-mail: |
papanikos@pathfinder.gr |

\-------------------------/

>>> from wxPython.glcanvas import *
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/wxPython/glcanvas.py", line 6, in

?
...

    class wxControlPtr(wxWindowPtr):
NameError: name 'wxWindowPtr' is not defined
>>>

Import wxPython.wx first. It's a quirk of SWIG that it is easy to generate
circular imports when it does "from module import *" everywhere. Importing
wx first ensures that the windows module has already been fully imported.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Import wxPython.wx first. It's a quirk of SWIG that it is easy to generate
circular imports when it does "from module import *" everywhere. Importing
wx first ensures that the windows module has already been fully imported.

Ah, beautiful, thanks!

Hugo