Make form only resizable horizontally?

Robin Dunn <robin <at> alldunn.com> writes:

Call the frame's SetSizeHints with values for minH and maxH.

Thank you Robin. This seems to be an easier solution. But I could not get the
syntax right. I have this line in the code:

mainSizer.SetSizeHints(self)

Where do i put minH and maxH? Does wx.Frame have minH/maxH property? I didn't
find it on this page: wxPython API Documentation — wxPython Phoenix 4.2.2 documentation

Kelie <kf9150 <at> gmail.com> writes:

Where do i put minH and maxH? Does wx.Frame have minH/maxH property? I didn't
find it on this page: wxPython API Documentation — wxPython Phoenix 4.2.2 documentation

Never mind. I found the answer from wxWidgets reference. The syntax should be
self.SetSizeHints(minW, minH, maxH) where self is the frame. Thanks.