Skip to content

Instantly share code, notes, and snippets.

@thouis
Created April 5, 2011 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thouis/903775 to your computer and use it in GitHub Desktop.
Save thouis/903775 to your computer and use it in GitHub Desktop.
gridding lines
for count, gene in countgenes:
name = wx.StaticText(self, -1, gene)
name.BackgroundColour = '#ffffff'
self.grid_sizer.Add(name, 0, wx.EXPAND)
c = wx.StaticText(self, -1, "%d"%(count))
self.grid_sizer.Add(c, 0, wx.EXPAND)
b1 = wx.RadioButton(self, -1, style=wx.RB_GROUP)
b1.BackgroundColour = '#ffffff'
b1.Alignment = wx.ALIGN_CENTER_HORIZONTAL
self.grid_sizer.Add(b1, flag=wx.ALIGN_CENTER|wx.EXPAND)
self.grid_sizer.Add(wx.RadioButton(self, -1), flag=wx.ALIGN_CENTER)
self.grid_sizer.Add(wx.RadioButton(self, -1), flag=wx.ALIGN_CENTER)
self.grid_sizer.Layout()
# XXX - put in lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment