Discussion:
[BitPim-devel] Re: [bitpim-cvs-checkins] bitpim calendarentryedito r.py,1.16,1.17
d***@netzero.com
2005-03-31 16:40:08 UTC
Permalink
Joe
Why did you make this change?
Roger, because it wasn't working for me. bpcalendar calls Show and not ShowModal; if your previous changes were meant for something else, I'll put them back in.

-Joe Pham


______________________________________________________________________
Speed up your surfing with NetZero HiSpeed.
Now includes pop-up blocker!
Only $14.95/month -visit http://www.netzero.com/surf to sign up today!
Roger Binns
2005-03-31 17:30:29 UTC
Permalink
Post by d***@netzero.com
bpcalendar calls Show and not ShowModal; if your previous changes
were meant for something else, I'll put them back in.
That is a good explanation :-) I would like more windows/dialogs
to use that sizing code. I wonder if it can be done via a mixin.

Roger
d***@netzero.com
2005-03-31 22:20:50 UTC
Permalink
Post by Roger Binns
I wonder if it can be done via a mixin.
You mean something along the line of:

self.dialog=guiwidgets.SavedSizeWindow(calendarentryeditor.Editor(self))

-Joe Pham



______________________________________________________________________
Speed up your surfing with NetZero HiSpeed.
Now includes pop-up blocker!
Only $14.95/month -visit http://www.netzero.com/surf to sign up today!
Roger Binns
2005-04-03 06:15:12 UTC
Permalink
Post by d***@netzero.com
Post by Roger Binns
I wonder if it can be done via a mixin.
self.dialog=guiwidgets.SavedSizeWindow(calendarentryeditor.Editor(self))
Nope, that would be akin to a decorator.

A mixin is a class you multiply inherit that does some extra work
for you. In our case it would need to set the window size in the
constructor and remember the sizes at the end of ShowModal/Show/Destroy.

Roger

Loading...