Yes, this is the result I just got. But see the screenshot for the result.
In fact I was wondering how to get the staticline thinner (normally it is
one or two pixels thick..)
Best regards
Oliver
···
-----Ursprüngliche Nachricht-----
Von: Robin Dunn [mailto:robin@alldunn.com]
Gesendet: Mittwoch, 6. Oktober 2004 23:16
An: wxPython-dev@lists.wxwidgets.org
Betreff: Re: [wxPython-dev] StaticLine in GridBagSizer
Oliver Walczak wrote:
Dear list,
WinXP, Python 2.3.4, wx2.5.2.8:
Is it possible to show StaticLines in the GridBagSizer?
import wx
class Frame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="StaticLine in a GBS")
p = wx.Panel(self)
gbs = wx.GridBagSizer(5,15)
for x in range(4):
st = wx.StaticText(p, -1, "StaticText%d" % (x+1))
gbs.Add(st, (0, x))
gbs.Add(wx.StaticLine(p), (1, 0), (1, 4), wx.EXPAND)
for x in range(4):
st = wx.StaticText(p, -1, "StaticText%d" % (x+1))
gbs.Add(st, (2, x))
p.SetSizerAndFit(gbs)
self.Fit()
app = wx.PySimpleApp()
f = Frame()
f.Show()
app.MainLoop()
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-dev-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-help@lists.wxwidgets.org