Hello Massimiliano,
I hope you won't find a bug in your application in the future I
don't know if your coding is forced by the design of your app, but it is
quite hard to follow and complicated to analyse. Finding and fixing a bug
is almost impossible (at least for me) following your disegn code.
However, everyone has its own coding style
If I understood you correctly, you would like to have the buttons aligned
to the right. In order to have such a thing, you should prepend a
stretchable spacer *before* the button. If you add to your sizer only the
buttons, wxPython has no way to interpret your wx.ALIGN_RIGHT. Align right
with respect to what? So, I added this line to your code:
nvgSizer = wx.BoxSizer (wx.HORIZONTAL)
# THIS LINE
nvgSizer.Add((1,0), 1, wx.EXPAND)
AddButton (nvgSizer, '|<')
AddButton (nvgSizer, '<')
AddButton (nvgSizer, '>')
AddButton (nvgSizer, '>|')
And now it works as expected. But probably I did not understand your
problem correctly.
HTH.
Andrea.
···
_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Restyled Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________
Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453