Hi,
import wx
class Absolute(wx.Frame):
def __init__(self, parent, id, title):
wx.Frame.__init__(self, parent, id, title, size=(250, 180))
label = wx.StaticText(self, wx.ID_ANY, "emission" )
txt = wx.TextCtrl(self, wx.ID_ANY, "" )
hsizer = wx.BoxSizer(wx.HORIZONTAL)
hsizer.Add(label, 0,
wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT, 10)
hsizer.SetItemMinSize(label, (100,-1))
hsizer.Add(txt, 0, wx.ALIGN_CENTER_VERTICAL)
self.SetSizer( hsizer )
hsizer.Fit( self )
self.Centre()
self.Show(True)
app = wx.App(0)
Absolute(None, -1, '')
app.MainLoop()
The text "emission" should be aligned at right with margin of 10 but it's not.
On windows it's fine. Instead of RIGHT if I use LEFT the results are
as expected.
Prashant
#---- System Information ----#
GUI2Exe Version: 0.5.0
Operating System: Linux 2.6.31-14-generic i686
Python Version: 2.6.4rc2 (r264rc2:75497, Oct 20 2009, 02:55:11)
[GCC 4.4.1]
wxPython Version: 2.8.10.1 (gtk2-unicode)
wxPython Info: (__WXGTK__, wxGTK, unicode, gtk2, wx-assertions-off,
SWIG-1.3.29)
Python Encoding: Default=UTF-8 File=UTF-8
wxPython Encoding: utf-8
System Architecture: 32bit i686
Byte order: little
Frozen: False
#---- End System Information ----#