[wxpython-users] a button posts before it has been added
Mike Driscoll
mike at pythonlibrary.org
Thu Sep 18 11:17:08 PDT 2008
paul taney wrote:
> Hi,
>
> Why does a button post even if it has not been gbox.Added?
> It posts in the upper left. I"m on a Mac running 10.5.
>
> paul
>
> ----
>
>
Because you have to position it. As far as I know, all widgets are shown
by default upon creation. If you don't pass them a position or put them
in a sizer, then they default to (0,0) or the upper left corner. If you
do that with multiple widgets, then you'll get a stacked mess in the
upper left corner.
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org
More information about the wxpython-users
mailing list