[wxpython-users] ?
Mike Driscoll
mdriscoll at co.marshall.ia.us
Fri Apr 25 13:35:09 PDT 2008
Marlin Rowley wrote:
> Where do you do this? Here is the calling __init__ sequence for each
> of the classes in my script..
>
> Window()
> {
> ??
> }
>
> Frame() {
> win = Window()
> win.SetClientSize(size) <<<< -- doesn't work here!
> }
>
> App(){
> frame = Frame()
> ??
> }
>
>
I'd do it at the frame level. Something like:
frame.SetClientsize(width, height)
I use the following call in one of my scripts to make the window the
"best" size relative the controls that I have in it:
self.SetClientSize(panel.GetBestSize())
Not sure if that's relevant in this case though.
> ------------------------------------------------------------------------
> Date: Fri, 25 Apr 2008 21:20:22 +0200
> From: barbarossa.platz at gmail.com
> To: wxpython-users at lists.wxwidgets.org
> Subject: Re: [wxpython-users] Having problems with wxPython - HELP!!!
>
> Try wxWindow.SetClientSize(width, height) or
> wxWindow.SetClientSize(size). The 'decorations' will adjust
> automatically.
>
> 2008/4/25, Tim Roberts <timr at probo.com <mailto:timr at probo.com>>:
>
<snip>
Mike
More information about the wxpython-users
mailing list