Make form only resizable horizontally?

Yes.
Store in a variant in init the vertical size you want to maintain, and intercept the event wx.EVT_SIZE.

 def __init__ (self):
       self.VertSize = 500
       self.Bind(wx.EVT_SIZE, self.OnSize

)

 def OnSize(self, event):
       event.Skip()
       sz = event.GetSize()
       if sz.height != self.VertSize:
            sz.height = self.VertSize
            self.SetSize

(sz)

Bye.

···

2008/1/8, Kelie kf9150@gmail.com:

Hello,

Is there a way to make a form only resizable horizontally, not vertically?

Thanks,

kelie


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