Hello together:
I have programmed that : win = DialogStreaming(self, -1, "Introduce the streaming source URL ...", size=wx.Size(400, 200), style = wx.DEFAULT_DIALOG_STYLE) win.CenterOnScreen() . . . The DialogStreaming class is: class DialogStreaming(wx.Dialog): def __init__( self, parent, ID, title, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE): wx.Dialog.__init__(self, parent, ID, title, pos, size, style) sizer = wx.BoxSizer(wx.VERTICAL) label = wx.StaticText(self, -1, "Introduce URL: (mms://)") sizer.Add(label, 0, wx.ALIGN_CENTRE|wx.ALL, 5) box = wx.BoxSizer(wx.HORIZONTAL) label = wx.StaticText(self, -1, "URL: ") box.Add(label, 0, wx.ALIGN_CENTRE|wx.ALL, 5) self.Streaming = wx.TextCtrl(self, -1, "mms://", size=(80,-1)) box.Add(self.Streaming, 1, wx.ALIGN_CENTRE|wx.ALL, 5) sizer.AddSizer(box, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5) line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL) sizer.Add(line, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5) box = wx.BoxSizer(wx.HORIZONTAL) btn = wx.Button(self, wx.ID_OK, " OK ") btn.SetDefault() box.Add(btn, 0, wx.ALIGN_CENTRE|wx.ALL, 5) btn = wx.Button(self, wx.ID_CANCEL, " Cancel ") box.Add(btn, 0, wx.ALIGN_CENTRE|wx.ALL, 5) sizer.Add(box, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5) self.SetSizer(sizer) self.SetAutoLayout(True) sizer.Fit(self) The problem i have is that the size of the window is always equal, independently of the values that i introduce. The current values are (400,200) And, this size is of course , too small. The title does not fit it. What am i doing bad in the call to Dialog.__init__? Thank you --oOo-----------------------------------------------------------------oOo-- Servicio de acceso ó correo electrónico vía web da Universidade de Vigo Servicio de acceso al correo electrónico vía web de la Universidad de Vigo Servicios Informáticos [ http://si.uvigo.es ] Universidade de Vigo [ http://www.uvigo.es ] URL: https://correoweb.uvigo.es