Пример #1
0
 def build_task_treeview(self, tree, desc):
     treeview = TreeView(tree, desc)
     # Now that the treeview is done, we can polish
     treeview.set_main_search_column('label')
     treeview.set_expander_column('label')
     treeview.set_dnd_name('gtg/task-iter-str')
     # Background colors
     treeview.set_bg_color(self.task_bg_color, 'bg_color')
      # Global treeview properties
     treeview.set_property("enable-tree-lines", False)
     treeview.set_rules_hint(False)
     treeview.set_multiple_selection(True)
     # Updating the unactive color (same for everyone)
     self.unactive_color = \
         treeview.style.text[gtk.STATE_INSENSITIVE].to_string()
     return treeview
Пример #2
0
 def build_task_treeview(self, tree, desc):
     treeview = TreeView(tree, desc)
     # Now that the treeview is done, we can polish
     treeview.set_main_search_column('label')
     treeview.set_expander_column('label')
     treeview.set_dnd_name('gtg/task-iter-str')
     # Background colors
     treeview.set_bg_color(self.task_bg_color, 'bg_color')
      # Global treeview properties
     treeview.set_property("enable-tree-lines", False)
     treeview.set_rules_hint(False)
     treeview.set_multiple_selection(True)
     # Updating the unactive color (same for everyone)
     self.unactive_color = \
         treeview.style.text[gtk.STATE_INSENSITIVE].to_string()
     return treeview
Пример #3
0
 def build_task_treeview(self, tree, desc):
     treeview = TreeView(tree, desc)
     # Now that the treeview is done, we can polish
     treeview.set_main_search_column('label')
     treeview.set_expander_column('label')
     treeview.set_dnd_name('gtg/task-iter-str')
     # Background colors
     treeview.set_bg_color(self.get_task_bg_color, 'bg_color')
     # Global treeview properties
     treeview.set_property("enable-tree-lines", False)
     treeview.set_rules_hint(False)
     treeview.set_multiple_selection(True)
     # Updating the unactive color (same for everyone)
     color = treeview.get_style_context().get_color(Gtk.StateFlags.INSENSITIVE)
     # Convert color into #RRRGGGBBB
     self.unactive_color = color.to_color().to_string()
     return treeview
Пример #4
0
 def build_task_treeview(self, tree, desc):
     treeview = TreeView(tree, desc)
     # Now that the treeview is done, we can polish
     treeview.set_main_search_column('label')
     treeview.set_expander_column('label')
     treeview.set_dnd_name('gtg/task-iter-str')
     # Background colors
     treeview.set_bg_color(self.task_bg_color, 'bg_color')
     # Global treeview properties
     treeview.set_property("enable-tree-lines", False)
     treeview.set_rules_hint(False)
     treeview.set_multiple_selection(True)
     # Updating the unactive color (same for everyone)
     color = treeview.get_style_context().get_color(
         Gtk.StateFlags.INSENSITIVE)
     # Convert color into #RRRGGGBBB
     self.unactive_color = color.to_color().to_string()
     return treeview