How to set the size of wxFrame

Sion Arrowsmith siona at chiark.greenend.org.uk
Thu Oct 28 11:26:18 EDT 2004


In article <4180d8de at news.seeder.net>, Austin <austin at maxtronic.com.tw> wrote:
>i create a frame and a panel in that.
>i hope the size of the frame is not to be adjusted.
>How could i do ?

(a) Make sure your frame's style doesn't include wx.RESIZE_BORDER

or

(b) self.SetSizeHints(self.GetSize(), self.GetSize())

I believe the first is more portable (across wxPython versions and
platforms), but something like the second might be more useful if
you're setting the size yourself.

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list