wxDialog: center on parent?

What is the correct way to do that??

Mi configuracion/My config:

Ubuntu Edgy Eft 6.10
Linux Kernel 2.6.17-10-386
Gnome 2.16.1
Python 2.4.4c1
wxPython 2.8.1.1 Unicode
Python IDE: Ulipad 3.6

···

--
Saludos / Best regards

Mario Lacunza Vásquez
Desarrollador de Software - Webmaster
Linux Registered User #439179
Desarrollador 2 Estrellas VS2005

Website : http://mlacunzav[DOT]cogia[DOT]net
Email : mlacunza[AT]gmail.com / mario_lacunza[AT]yahoo.es
Blog : http://mlacunza.blogspot.com
Lima - Peru

dlg.CenterOnParent()

···

2007/2/3, Mario Lacunza <mlacunza@gmail.com>:

What is the correct way to do that??

Mi configuracion/My config:

Ubuntu Edgy Eft 6.10
Linux Kernel 2.6.17-10-386
Gnome 2.16.1
Python 2.4.4c1
wxPython 2.8.1.1 Unicode
Python IDE: Ulipad 3.6
--
Saludos / Best regards

Mario Lacunza Vásquez
Desarrollador de Software - Webmaster
Linux Registered User #439179
Desarrollador 2 Estrellas VS2005

Website : http://mlacunzav[DOT]cogia[DOT]net
Email : mlacunza[AT]gmail.com / mario_lacunza[AT]yahoo.es
Blog : http://mlacunza.blogspot.com
Lima - Peru

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Dont work...

I use this for call the Dialog:

        import frmAyto
        mant=frmAyto.Ayto(self)
  mant.CenterOnParent()
        mant.ShowModal()

and this is the frmAyto:

class Ayto(wx.Dialog):
    def __init__(self,prnt):
        wx.Dialog.__init__(self, parent=prnt, id=-1,
title=u'Ayuntamiento', size=wx.DefaultSize,
style=wx.DEFAULT_DIALOG_STYLE)
        self.SetClientSize(wx.DefaultSize)

Any idea?

···

El sáb, 03-02-2007 a las 20:42 +0200, Murat Erten escribió:

2007/2/3, Mario Lacunza <mlacunza@gmail.com>:
> What is the correct way to do that??
>
> Mi configuracion/My config:
>
> Ubuntu Edgy Eft 6.10
> Linux Kernel 2.6.17-10-386
> Gnome 2.16.1
> Python 2.4.4c1
> wxPython 2.8.1.1 Unicode
> Python IDE: Ulipad 3.6
> --
> Saludos / Best regards
>
> Mario Lacunza Vásquez
> Desarrollador de Software - Webmaster
> Linux Registered User #439179
> Desarrollador 2 Estrellas VS2005
>
> Website : http://mlacunzav[DOT]cogia[DOT]net
> Email : mlacunza[AT]gmail.com / mario_lacunza[AT]yahoo.es
> Blog : http://mlacunza.blogspot.com
> Lima - Peru
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>
>

dlg.CenterOnParent()

--
Mario Lacunza <mlacunza@gmail.com>

Sorry, I forget the screenshot link:

http://mlacunzav.cogia.net/Imagenes/Pantallazo.jpg

the little frame in the top is frmAyto....

Thanks!

···

--
Mario Lacunza <mlacunza@gmail.com>

Mario Lacunza wrote:

Dont work...

I use this for call the Dialog:

        import frmAyto
        mant=frmAyto.Ayto(self)
  mant.CenterOnParent()
        mant.ShowModal()

and this is the frmAyto:

class Ayto(wx.Dialog):
    def __init__(self,prnt):
        wx.Dialog.__init__(self, parent=prnt, id=-1,
title=u'Ayuntamiento', size=wx.DefaultSize,
style=wx.DEFAULT_DIALOG_STYLE)
        self.SetClientSize(wx.DefaultSize)

Any idea?

It should work. Please send a runnable sample that shows the problem.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Yes, thanks!! my mistake! I put here the correct line, but in my code I
write wrong! sorry Im working much hours... :frowning:

Mi configuracion/My config:

Ubuntu Edgy Eft 6.10
Linux Kernel 2.6.17-10-386
Gnome 2.16.1
Python 2.4.4c1
wxPython 2.8.1.1 Unicode
Python IDE: Ulipad 3.6

···

El sáb, 03-02-2007 a las 21:41 -0800, Robin Dunn escribió:

Mario Lacunza wrote:

> Dont work...
>
> I use this for call the Dialog:
>
> import frmAyto
> mant=frmAyto.Ayto(self)
> mant.CenterOnParent()
> mant.ShowModal()
>
>
> and this is the frmAyto:
>
> class Ayto(wx.Dialog):
> def __init__(self,prnt):
> wx.Dialog.__init__(self, parent=prnt, id=-1,
> title=u'Ayuntamiento', size=wx.DefaultSize,
> style=wx.DEFAULT_DIALOG_STYLE)
> self.SetClientSize(wx.DefaultSize)
>
>
> Any idea?
>

It should work. Please send a runnable sample that shows the problem.

--
Saludos / Best regards

Mario Lacunza Vásquez
Desarrollador de Software - Webmaster
Linux Registered User #439179
Desarrollador 2 Estrellas VS2005

Website : http://mlacunzav[DOT]cogia[DOT]net
Email : mlacunza[AT]gmail.com / mario_lacunza[AT]yahoo.es
Blog : http://mlacunza.blogspot.com
Lima - Peru