How to prevent dynamic resizing of a wx.Frame

How do you prevent a resizable wx.Frame from being resized under a specified height or width? I tried a event.Veto() on the wx.SizeEvent caught by OnSize() set by wx.EVT_SIZE(self, self.OnSize).

Unfortunately the wx.SizeEvent does not have a Veto() member.

I looked for a method that would specify the minimum, but could not find one, is there one?

Thanks

Pierre

Pierre Rouleau wrote:

How do you prevent a resizable wx.Frame from being resized under a specified height or width? I tried a event.Veto() on the wx.SizeEvent caught by OnSize() set by wx.EVT_SIZE(self, self.OnSize).

Unfortunately the wx.SizeEvent does not have a Veto() member.

I looked for a method that would specify the minimum, but could not find one, is there one?

I looked some more and found the answer...

The wxWindows.SetSizeHints() does the trick.