[wxPython-users] Autocenter dialogs on creation

Gavana, Andrea gavana at kpo.kz
Wed Jun 21 06:07:58 PDT 2006


Hello Felix,

> everytime i create a wx.Dialog object, to center it I call 
> the dialog.Center() method but:
> it's there anyway to center in on __init__ method ?? something like:
> 
> 	dlg = wx.Dialog(self, parent, -1, pos=wx.CenterPosition)

Why would you want to do something like that? ;-)
You can call self.Center() or self.CenterOnScreen()/Parent() or whatever in the __init__ method...

Andrea.

_________________________________________
Andrea Gavana (gavana at kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London
 
Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯




More information about the wxpython-users mailing list