Home | Trees | Indices | Help |
|
---|
|
1 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Rickard Lindberg, Roger Lindberg 2 # 3 # This file is part of Timeline. 4 # 5 # Timeline is free software: you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation, either version 3 of the License, or 8 # (at your option) any later version. 9 # 10 # Timeline is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with Timeline. If not, see <http://www.gnu.org/licenses/>. 17 18 19 import wx 20 21 from timelinelib.wxgui.components.categorytree import CustomCategoryTree 22 23255627 self._edit_controller = edit_controller 28 wx.Panel.__init__(self, parent, style=wx.BORDER_NONE) 29 self.Hide() 30 self._create_gui()3133 self.category_tree = CustomCategoryTree(self) 34 label = _("View Categories Individually") 35 self.cbx_toggle_cat_view = wx.CheckBox(self, -1, label) 36 # Layout 37 sizer = wx.GridBagSizer(vgap=0, hgap=0) 38 sizer.AddGrowableCol(0, proportion=0) 39 sizer.AddGrowableRow(0, proportion=0) 40 sizer.Add(self.category_tree, (0, 0), flag=wx.GROW) 41 sizer.Add(self.cbx_toggle_cat_view, (1, 0), flag=wx.ALL, border=5) 42 self.SetSizer(sizer) 43 self.Bind(wx.EVT_CHECKBOX, self._cbx_on_click, self.cbx_toggle_cat_view)4446 return self._edit_controller.ok_to_edit()4749 return self._edit_controller.edit_ends()50
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jul 28 01:55:29 2019 | http://epydoc.sourceforge.net |