Re: Re: [bitpim-cvs-checkins] bitpim calendarentryeditor.py,1.16,1.17

"Roger Binns" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <001b01c53814$7ee9cc80$3501a8c0@rogersqyvr14d3>
>>I wonder if it can be done via a mixin.
> 
> You mean something along the line of:
> 
> 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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.