On Wednesday 18 November 2009 02:50:21 pm Paul McNett wrote:
> dabo Commit
> Revision 5532
> Date: 2009-11-18 14:50:21 -0800 (Wed, 18 Nov 2009)
> Author: Paul
> Trac: http://trac.dabodev.com/changeset/5532
>
> Changed:
> U   trunk/dabo/ui/uiwx/dDialog.py
>
> Log:
> My dialogs weren't saving their size/position if the user clicked Okay
> instead of closing it with the close button in the title bar. Fixed.
>
>
>
> Diff:
> Modified: trunk/dabo/ui/uiwx/dDialog.py
> ===================================================================
> --- trunk/dabo/ui/uiwx/dDialog.py     2009-11-18 19:35:45 UTC (rev 5531)
> +++ trunk/dabo/ui/uiwx/dDialog.py     2009-11-18 22:50:21 UTC (rev 5532)
> @@ -46,6 +46,11 @@
>               self.setFocus()
>
>
> +     def EndModal(self, *args, **kwargs):
> +             self.saveSizeAndPosition()
> +             super(dDialog, self).EndModal(*args, **kwargs)
> +
> +
>       def _afterInit(self):
>               self.MenuBarClass = None
>               self.Sizer = dabo.ui.dSizer("V")


You know what would be very cool if the grids saved there configuration.  Like 
when the user changes the size of a column.

Johnf



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to