From: Alex T. <al...@tw...> - 2006-07-05 23:59:57
|
Steve Freitas wrote: >Hi, > >For debugging let's say I put a method "on_size(self, event)" in my >class, and it prints some stuff. Well, I noticed when playing with >model.Background.singleItemExpandingSizerLayout(), if I provide an >on_size(), then the resizing doesn't happen. So I tried... > >class Test(model.Background): > def on_initialize(self, event): > self.singleItemExpandingSizerLayout() > > def on_size(self, event): > print self.size, self.c.StaticBox1.size > super(Test, self).on_size(self, event) # This didn't work > model.Background.on_size(self, event) # Nor this > > >So when I want to respond to an event but then toss the event back up >afterward for normal handling, how do I do that? > > > def on_size(self, event): print self.size, self.c.StaticBox1.size event.skip() Actually, event.Skip() also seems to work - not 100% sure which is "correct" :-) -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.8/380 - Release Date: 30/06/2006 |