- Bugfixes.

This commit is contained in:
ccremers 2006-08-11 15:36:23 +00:00
parent c3ce3c37d4
commit 3b6794de34

View File

@ -28,7 +28,8 @@ class MyGrid(wx.GridBagSizer):
def lineAdd(self): def lineAdd(self):
line = wx.StaticLine(self.parent,-1) line = wx.StaticLine(self.parent,-1)
self.Add(line,pos=(self.ypos,0),span=(1,2),flag=wx.EXPAND|wx.ALIGN_BOTTOM) # Currently it is not expanded, and thus invisible.
self.Add(line,pos=(self.ypos,0),span=(1,2),flag=wx.TOP|wx.BOTTOM)
self.ypos += 1 self.ypos += 1
def titleAdd(self,title,firstLine=True): def titleAdd(self,title,firstLine=True):
@ -36,7 +37,7 @@ class MyGrid(wx.GridBagSizer):
self.lineAdd() self.lineAdd()
self.ypos += 1 self.ypos += 1
txt = wx.StaticText(self.parent,-1,title) txt = wx.StaticText(self.parent,-1,title)
font = wx.Font(12,wx.DEFAULT,wx.BOLD,wx.NORMAL) font = wx.Font(12,wx.DEFAULT,wx.NORMAL,wx.BOLD)
txt.SetFont(font) txt.SetFont(font)
self.Add(txt,pos=(self.ypos,0),span=(1,2),flag=wx.ALIGN_CENTER) self.Add(txt,pos=(self.ypos,0),span=(1,2),flag=wx.ALIGN_CENTER)
self.ypos += 1 self.ypos += 1