I'm trying to center a message dialog on the frame that invoked it.
[...]
debugging it i found strange values for dlg Rect and Size
>>>dlg.Rect
wx.Rect(0, 8191, 285, 14895)
>>> dlg.Size
wx.Size(-27211, 55098)
Any clue ?
wx.MessageDialogs are not a real wx.Dialog. They are just simple wrappers around the system API that shows the system dialog, so most things that you can do to a wx.Dialog are not valid. If you need to have different behavior than what is provided by default then you'll need to derive your own class from wx.Dialog.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Ok.
Unfortunately, in documentation I read that it is derived from wx.Dialog and so i supposed that there was a full inheritance.
Thank you.
G
···
Il giorno 08/gen/07, alle ore 23:11, Robin Dunn ha scritto:
Giovanni Porcari wrote:
Hi all
I'm trying to center a message dialog on the frame that invoked it.
[...]
debugging it i found strange values for dlg Rect and Size
>>>dlg.Rect
wx.Rect(0, 8191, 285, 14895)
>>> dlg.Size
wx.Size(-27211, 55098)
Any clue ?
wx.MessageDialogs are not a real wx.Dialog. They are just simple wrappers around the system API that shows the system dialog, so most things that you can do to a wx.Dialog are not valid. If you need to have different behavior than what is provided by default then you'll need to derive your own class from wx.Dialog.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org