how to get the screen size for an application

For centering the frame, there is a method called Centre(). You do not need to calculate the screen size and the application size.

By the way to get the application size, we have GetSize() and GetSizeTuple() methods.
To get the screen size, we have wx.GetDisplaySize() method.

have a look at http://www.wxpython.org/onlinedocs.php, a lot of the methods described there are self-explaining.

  • jan bodnar

For centering the frame, there is a method called Centre(). You do not need
to calculate the screen size and the application size.

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)?

By the way to get the application size, we have GetSize() and GetSizeTuple()
methods.
To get the screen size, we have wx.GetDisplaySize() method.

I am not finding laying out controls with sizers a good technique (may
be I am wrong and correct me if so). I am a visually handicap person
and never found an accessible ide for wxpython. rather I never found
a complete and free ide for creating forms in wxpython.
so I imagine the screen by its coordinates and lay out the controls.
I had attained mastery in java swing and hope to do the same with
wxpython. already my screens are looking good to my sited colligues.
I hope I will get additional guidance from the members of this list.
regards.
Krishnakant.

ยทยทยท

On 03/01/07, vronskij <vronskij@gmail.com> wrote: