[wxPython-users] Re: "global name 'NormalFont' is not defined"
error in ogl.ShapeRegion
Matthieu Brucher
matthieu.brucher at gmail.com
Wed May 16 06:34:28 PDT 2007
OK, thank you for the intel...
Matthieu
2007/5/16, Pierre Hj=E4lm <pierre.hjalm at dis.uu.se>:
>
> "Matthieu Brucher" <matthieu.brucher at gmail.com> writes:
>
> > On 2.8 and Windows, the error is this one :
> >
> > RectangleShape.__init__(self, 100.0, 100.0)
> > File "D:\Python25\lib\site-packages\wx-
> > 2.8-msw-unicode\wx\lib\ogl\_basic.py", line 2314, in __init__
> > Shape.__init__(self)
> > File "D:\Python25\lib\site-packages\wx-
> > 2.8-msw-unicode\wx\lib\ogl\_basic.py", line 232, in __init__
> > self._pen =3D BlackForegroundPen
> > NameError: global name 'BlackForegroundPen' is not defined
> >
> > What am I missing ??
> >
>
> You have to call ogl.OGLInitialize() first.
>
> --
> Pierre Hj=E4lm
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200705=
16/d7efd8a3/attachment-0001.htm
More information about the wxpython-users
mailing list