[wxPython-users] Use tab key for change textctrl
Andrea Gavana
andrea.gavana at gmail.com
Tue Apr 3 02:16:14 PDT 2007
Hi Andrea,
On 4/3/07, Andrea wrote:
<snip>
<snap>
> #Add panel between menubar and statusbar
> self.panel = wx.Panel(self)
> #Create control on the panel
> nameLbl = wx.StaticText(self, -1, 'Ragione Sociale:', pos = (0, 15))
^^^^^
Your controls should be children of self.panel, not self. You are
putting a panel in your main frame (which is the right thing to do),
but all your controls are children of "self" instead of "self.panel".
Try to change them in this way:
nameLbl = wx.StaticText(self.panel, -1, 'Ragione Sociale:', pos = (0, 15))
Also, try to avoid using absolute positioning (i.e., using explicitely
pos=(0, 15)), try to fight against sizer to learn them. If you
distribute your application to someone else who has different settings
in the PC (resolution, screen size and whatever), absolute positioning
will kill your application and make it look bad on those PCs.
This is just a suggestion.
> def OnAbout(self, event):
> msg = "This is the Kory application for analisys of calls cost.\n"
> + \
> "Author: Andrea Marin @ 02 Apr 2007\n" + \
> "Please report any Bug/Requests of improvements\n" + \
> "to me at the following adresses:\n\n" + \
> "amarin at mr-service.it\n" + "baba-andrea at jabber.org\n\n" +
> \
> "GUI with wxPython " + wx.VERSION_STRING + " !!!"
I seem to recognize the style of the "About" string :-D :-D
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
More information about the wxpython-users
mailing list