~taskcoach-developers/taskcoach/Release1_2_Branch

« back to all changes in this revision

Viewing changes to taskcoachlib/gui/viewer/category.py

  • Committer: fniessink
  • Date: 2011-11-13 12:01:50 UTC
  • Revision ID: svn-v4:1bde7e76-c350-445e-a5b0-d0792d1e7eef:branches/Release1_2_Branch/taskcoach:4927
Don't show UI commands in the task statistics toolbar that require a selection.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
        return columns
118
118
    
119
119
    def createCreationToolBarUICommands(self):
120
 
        return [uicommand.CategoryNew(categories=self.presentation(),
 
120
        return (uicommand.CategoryNew(categories=self.presentation(),
121
121
                                      settings=self.settings),
122
 
                uicommand.NewSubItem(viewer=self)]
 
122
                uicommand.NewSubItem(viewer=self))
123
123
 
124
124
    def createColumnUICommands(self):
125
125
        commands = [\
204
204
        self.filterUICommand = \
205
205
            uicommand.CategoryViewerFilterChoice(settings=self.settings)
206
206
        return super(CategoryViewer, self).createModeToolBarUICommands() + \
207
 
            [self.filterUICommand]
 
207
            (self.filterUICommand,)