Exemple #1
0
 def _create_category_selector(self):
     ROWS = 4
     COLS = 2
     VGAP = BORDER
     HGAP = BORDER
     GROWABLE_COL_INDEX = 1
     grid = wx.FlexGridSizer(ROWS, COLS, VGAP, HGAP)
     grid.AddGrowableCol(GROWABLE_COL_INDEX)
     self.lst_category = CategoryChoice(self, self.timeline)
     self.lst_category.select(None)
     label = wx.StaticText(self, label=_("Select a Category:"))
     grid.Add(label, flag=wx.ALIGN_CENTER_VERTICAL)
     grid.Add(self.lst_category)
     return grid
Exemple #2
0
 def _create_categories_listbox(self, grid):
     self.lst_category = CategoryChoice(self, self.db)
     label = wx.StaticText(self, label=_("Category:"))
     grid.Add(label, flag=wx.ALIGN_CENTER_VERTICAL)
     grid.Add(self.lst_category)