OGL and ShapeRegion

Hi all,

I have been using OGL classes for sometimes, and i hardly found docs.
Throught lots of google, I manage to find few docs but there is still one classes that documented : wxShapeRegion which is agregated in a wxDividedShape. I realy need to use this class (ShapeRegion) so if anyone has ever used this one, i would be so greatfull so for any help!

Moreover, i was just wondering why is OGL features is dying in wxWidgets' futur?

Regards,

Kevin Thackray

Moreover, i was just wondering why is OGL features is dying in
wxWidgets' futur?

I have de same doubt, specially because Im seeing many people using ogl
in list latelly. When I start to study ogl I thought it was because
people dont use it but its not what Im seeing now.

Diego

Do you know why this error?

1:caracal-root-bash-2.03-[]-/caracal/wxPythonSrc-2.5.1.5/wxPython/demo
$ ./demo.py
Traceback (most recent call last):
  File "./demo.py", line 4, in ?
    Main.main()
  File "/caracal/wxPythonSrc-2.5.1.5/wxPython/demo/Main.py", line 946, in main
    app = MyApp(0) ##wx.Platform == "__WXMAC__")
  File "/usr/local/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in __init__
    _wxStart(self.OnInit)
  File "/caracal/wxPythonSrc-2.5.1.5/wxPython/demo/Main.py", line 931, in OnInit
    splash = MySplashScreen()
  File "/caracal/wxPythonSrc-2.5.1.5/wxPython/demo/Main.py", line 907, in __init__
    self.Bind(wx.EVT_CLOSE, self.OnClose)
AttributeError: MySplashScreen instance has no attribute 'Bind'

$ uname -a
SunOS caracal 5.8 Generic_108528-22 sun4u sparc SUNW,Ultra-5_10

In config.status,
  with options \"'--prefix=/caracal/wx/2.5' '--with-gtk' '--disable-monolithic' '--enable-debug' '--enable-geometry' '--disable-shared'\"

LD_LIBRARY_PATH has been set to /caracal/wx/2.5/lib

hslee

Diego Galho Prestes wrote:

Moreover, i was just wondering why is OGL features is dying in wxWidgets' futur?

I have de same doubt, specially because Im seeing many people using ogl
in list latelly. When I start to study ogl I thought it was because
people dont use it but its not what Im seeing now.

People may be using it, but nobody is maintaining it. There's a big difference. The C++ code for it is a mess (it originated with wxWidgets 1.5x and it only updated enough to make it work with 2.x) and so my preference would be to reimplement OGL in Python code using wxPython. I think the result would be much more flexible and easily extendable than what we have now.

···

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

Hack Sung Lee wrote:

Do you know why this error?

1:caracal-root-bash-2.03--/caracal/wxPythonSrc-2.5.1.5/wxPython/demo
$ ./demo.py
Traceback (most recent call last):
File "./demo.py", line 4, in ?
   Main.main()
File "/caracal/wxPythonSrc-2.5.1.5/wxPython/demo/Main.py", line 946, in main
   app = MyApp(0) ##wx.Platform == "__WXMAC__")
File "/usr/local/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in __init__
   _wxStart(self.OnInit)
File "/caracal/wxPythonSrc-2.5.1.5/wxPython/demo/Main.py", line 931, in OnInit
   splash = MySplashScreen()
File "/caracal/wxPythonSrc-2.5.1.5/wxPython/demo/Main.py", line 907, in __init__
   self.Bind(wx.EVT_CLOSE, self.OnClose)
AttributeError: MySplashScreen instance has no attribute 'Bind'

Is a prior verison of wxPython being imported? What do you get if you run this:

  python -c "import wx;print wx.VERSION_STRING"

···

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