Changeset 2889

Show
Ignore:
Timestamp:
03/07/2007 10:12:47 AM (2 years ago)
Author:
ed
Message:

Added the 'Invert Selection' option to the getChoices() method. Fixed the code so that 'Unselect All' actually did that instead of inverting the selection.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/__init__.py

    r2881 r2889  
    671671                btnNone = dabo.ui.dButton(self, Caption=_("Unselect All"), 
    672672                        OnHit=self.unselectAll) 
     673                btnInvert = dabo.ui.dButton(self, Caption=_("Invert Selection"), 
     674                        OnHit=self.invertSelection) 
    673675                hsz.append(btnAll) 
    674676                hsz.appendSpacer(8) 
    675677                hsz.append(btnNone) 
     678                hsz.appendSpacer(8) 
     679                hsz.append(btnInvert) 
    676680                sz.appendSpacer(16) 
    677681                sz.append(hsz, halign="center", border=20) 
     
    685689         
    686690        def unselectAll(self, evt): 
     691            self.lst.unselectAll() 
     692         
     693        def invertSelection(self, evt): 
    687694            self.lst.invertSelections() 
    688              
    689695             
    690696    dlg = ChoiceDialog(_getActiveForm())