Hi. I create a dialog with this code. How can i put this dialog in ceter of screen?
Thansk all.
self.dlg = wx.TextEntryDialog(self.view, ‘Set the agent IP or hostname’,‘Select Agent’,’’, pos = wx.DefaultPosition)
···
–
Sbaush
Hi. I create a dialog with this code. How can i put this dialog in ceter of screen?
Thansk all.
self.dlg = wx.TextEntryDialog(self.view, ‘Set the agent IP or hostname’,‘Select Agent’,’’, pos = wx.DefaultPosition)
–
Sbaush
Use self.dlg.CentreOnParent(). Note that there is a bug in wxWidgets
2.6.1 (I think) that will make this function crash, but it should work
with the newest release.
Markus
Sbaush schrieb:
Hi. I create a dialog with this code. How can i put this dialog in
ceter of screen?
Thansk all.self.dlg = wx.TextEntryDialog(self.view, 'Set the agent IP or
hostname','Select Agent','', pos = wx.DefaultPosition)--
Sbaush
Isn’t there a stable solution?
Is the Mrkus’s solution a really crash or not?
Bye!
2006/2/20, Markus Meyer meyer@mesw.de:
Use self.dlg.CentreOnParent(). Note that there is a bug in wxWidgets
2.6.1 (I think) that will make this function crash, but it should work
with the newest release.Markus
Sbaush schrieb:
Hi. I create a dialog with this code. How can i put this dialog in
ceter of screen?
Thansk all.self.dlg = wx.TextEntryDialog(self.view, ‘Set the agent IP or
hostname’,‘Select Agent’,‘’, pos = wx.DefaultPosition)–
Sbaush
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
–
Sbaush
I have seen it crash on Windows, though it might work on other
platforms. Anyways, the newest version of wxPython is 2.6.2.1, and it
should work with the newest version, so why don't you just use that version?
Markus
Sbaush schrieb:
Isn't there a stable solution?
Is the Mrkus's solution a really crash or not?
Bye!2006/2/20, Markus Meyer <meyer@mesw.de <mailto:meyer@mesw.de>>:
Use self.dlg.CentreOnParent(). Note that there is a bug in wxWidgets
2.6.1 (I think) that will make this function crash, but it should work
with the newest release.Markus
Sbaush schrieb:
> Hi. I create a dialog with this code. How can i put this dialog in
> ceter of screen?
> Thansk all.
>
> self.dlg = wx.TextEntryDialog(self.view, 'Set the agent IP or
> hostname','Select Agent','', pos = wx.DefaultPosition)
>
> --
> Sbaush---------------------------------------------------------------------
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
<mailto:wxPython-users-unsubscribe@lists.wxwidgets.org>
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
<mailto:wxPython-users-help@lists.wxwidgets.org>--
Sbaush
Use dlg.CentreOnScreen() not on parent
On 2/21/06, Sbaush sbaush@gmail.com wrote:
Isn’t there a stable solution?
Is the Mrkus’s solution a really crash or not?
Bye!
yes, this is a great solution!
2006/2/21, Peter Damoc pdamoc@gmail.com:
Isn’t there a stable solution?
Is the Mrkus’s solution a really crash or not?
Bye!
On 2/21/06, Sbaush <sbaush@gmail.com > > wrote:Use dlg.CentreOnScreen() not on parent
–
Sbaush