Re: [pygtk] Strange change in event behavior in PyGTK2

2003-02-24 Thread Bernhard Herzog
James Henstridge <[EMAIL PROTECTED]> writes: > Christian Reis wrote: > > >Would it be correct, according to Python semantics, to pre-copy of > >the object then? And if so, what are the drawbacks of implementing > >things that way? > > > The drawback is that a number of GTK APIs simply don't work

Re: [pygtk] Strange change in event behavior in PyGTK2

2003-02-23 Thread James Henstridge
Christian Reis wrote: Would it be correct, according to Python semantics, to pre-copy of the object then? And if so, what are the drawbacks of implementing things that way? The drawback is that a number of GTK APIs simply don't work if you copy the boxed arguments. We used to copy boxed argum

Re: [pygtk] Strange change in event behavior in PyGTK2

2003-02-23 Thread Christian Reis
On Sun, Feb 23, 2003 at 05:32:25PM +0800, James Henstridge wrote: > >behavior of event objects in PyGTK2. The sample program below connects > >to the button press, motion and release events and stores the event > >object of the button_press event in an instance variable. In the motion > >event hand

Re: [pygtk] Strange change in event behavior in PyGTK2

2003-02-23 Thread James Henstridge
Bernhard Herzog wrote: While porting Sketch to PyGTK2 I came across a strange change in the behavior of event objects in PyGTK2. The sample program below connects to the button press, motion and release events and stores the event object of the button_press event in an instance variable. In the mo

[pygtk] Strange change in event behavior in PyGTK2

2003-02-22 Thread Bernhard Herzog
While porting Sketch to PyGTK2 I came across a strange change in the behavior of event objects in PyGTK2. The sample program below connects to the button press, motion and release events and stores the event object of the button_press event in an instance variable. In the motion event handler the