wxOGL

Good evening,

I am a very new programmer using wxPython. A very interessant aspect is the OGL . I have successfully try to run outside of the demo context of wxDemo the OGL demo.
There is on this demo four objects linked with arrows.Each objects is linked with events. There is one event trapped in the code wich name is 'OnSize'. But whatever I do within this event nothing is done . It is like this event is not catched .... Could somebody can help me with this particular feature.

Many thanks

Plateform : Win98
Python Version : 2.2.1
wxPython Version : 2.3.2.1

Benoit Franck wrote:

Good evening,

I am a very new programmer using wxPython. A very interessant aspect is the OGL . I have successfully try to run outside of the demo context of wxDemo the OGL demo.
There is on this demo four objects linked with arrows.Each objects is linked with events. There is one event trapped in the code wich name is 'OnSize'. But whatever I do within this event nothing is done . It is like this event is not catched .... Could somebody can help me with this particular feature.

Hmm... I thought for sure that this used to work, but it doesn't look like it is called anywhere in the OGL C++ code. You can try using OnSizingEndDragLeft instead. It should be defined like this:

     def OnSizingEndDragLeft(self, pt, x, y, keys, attch):
  pass

ยทยทยท

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