wxPython 2.5.1.1 Dlg position issue on win98

Oops, my previous post was incomplete.

Hi,

win98, Py 2.3.3, wxPy 2.5.1.1
It seems, there is really an bug with the dlg. On my platform,
the issue lies in the "x-default position"

class MyDlg(wx.Dialog):

    def __init__(self, parent, id):
        #not ok
        #~ wx.Dialog.__init__(self, parent, id, "Molecular weight", (-1, -1), (600, 550))
        
        #ok
        #~ wx.Dialog.__init__(self, parent, id, "Molecular weight", (10, -1), (600, 550))
        
        #not ok
        #~ wx.Dialog.__init__(self, parent, id, "Molecular weight", (-1, 10), (600, 550))
        
        #not ok
        #~ wx.Dialog.__init__(self, parent, id, "Molecular weight", wx.DefaultPosition, (600, 550))
        
        #ok
        #~ wx.Dialog.__init__(self, parent, id, "Molecular weight", (0, 0), (600, 550))

        #ok
        #~ wx.Dialog.__init__(self, parent, id, "Molecular weight", (30, 20), (600, 550))

        self.Centre()
        cwi, che = self.GetClientSizeTuple()
        print cwi, che

The dialog windows is always shown and centered on the screen, but
when "not ok", the size is (94, 75)!

jmf

Jean-Michel Fauth wrote:

Oops, my previous post was incomplete.

Hi,

win98, Py 2.3.3, wxPy 2.5.1.1
It seems, there is really an bug with the dlg. On my platform,
the issue lies in the "x-default position"

[...]

The dialog windows is always shown and centered on the screen, but
when "not ok", the size is (94, 75)!

That's already been fixed, but while making sure of it I discovered a bug in the prior fix, which I've now fixed. Thanks!

···

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