[wxPython-users] how to get the screen size for an application
vronskij
vronskij at gmail.com
Wed Jan 3 05:46:39 PST 2007
>so will it also work if my controls are laid out manually on the
>frame? for example if the frame is centered, what will it mean by
>putting a button at point 0,0 on the centered frame?
>wil it position itself relative to the starting point of the frame
>(which will be some thing at the centerof the screen)?
yes, it will work. the frame is centered on the screen desktop. the desktop
background is just a kind of a special window. button at (0, 0) will stay at
(0, 0), after the frame is centered on the screen.
>I am not finding laying out controls with sizers a good technique (may
>be I am wrong and correct me if so).
usually the sizers are a better way to layout your widgets. there are
situations, where manual layout fits well. ( many people would say, do not
use manual layout at all, but I don't agree. ) I know Swing as well and I
know exactly what you mean. I have
heard countless of times people crying: swing layout managers are difficult
to use!
and the swing developers at sun replied: you can use Netbeans and their
visual buider.
Now you can see, how mysteries and myths are born. Swing layout managers are
a bit more complicated, but it does not mean, they cannot be understood. the
problem is only that there is not a complete and easy to understand tutorial
or guide that would explain them. and that people are lazy. I bet the second
reason is more relevant.
Each developer must understand layout managers inside out. Couple of weeks
studying them will pay off later on.
If you are a master at Swing, wxPython is than a peace of cake. it is a way
less complicated.
I recommend you to look at wxPython code in some applications to get the
-feeling-. So that
you do not think in terms of Swing in wxPython.
-jan bodnar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200701=
03/f1fa396c/attachment.htm
More information about the wxpython-users
mailing list