Hi Nicholas,
What about this way? See attached, I used a second sizer.
See you
Werner
Nicholas Wieland wrote:
- Chris Barker :
>
>>Please put this code in a small, self contained, working example, so we
>>can run it and see what you're talking about. Also, it's then easy to
>>make a quick modification and test it before making a suggestion.
>
>>
>
>, sorry
>
>import wx
>
>class Foo (wx.Frame):
>
def __init__ (self, parent):
wx.Frameinit__ (self, parent, -1, size = (700,500))
box = wx.BoxSizer (wx.VERTICAL)
list = wx.ListCtrl (self, -1, style = wx.LC_REPRT|wx.SUNKEN_BRDER)
list.InsertColumn (-1, "Foo")
list.InsertColumn (-1, "Bar")
list.InsertStringItem (0, "Yada")
list.SetStringItem (0, 0, "Yada")
box.Add (list, 0, wx.EXPAND|wx.ALL|wx.ALIGN_CENTER_VERTICAL, 15)
self.SetSizer (box)
self.Layout ()
>
>
>class MyApp (wx.App):
>
def Init (self):
frame = Foo (None)
self.SetTopWindow (frame)
frame.Show (True)
return True
>
>
>app = MyApp ()
>app.MainLoop ()
>
>
>>Also give your version and platform info.
>
>>
>
>WxWPython 2.6.1.0, Python 2.4.2 on FreeBSD 6.0.
>
the window the list expands only on the right (yuk!)
>>I don't' really understand what this means? is it no longer centered?
>
>>
>
>I mean the whole widget. I'd like it to stay on the center instead of
>expanding on the right. Maybe it should expand the column labels.
>
ngw
To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org