Changeset 2990

Show
Ignore:
Timestamp:
03/27/07 14:41:27 (2 years ago)
Author:
ed
Message:

Fixed a display bug that was changing the current selection in the refreshDisplay() method. Changed the list comprehension to a generator expression, and removed an unnecessary blank line in that expression in refreshDisplay().

Files:

Legend:

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

    r2977 r2990  
    262262     
    263263    BackColor = property(_getBackColor, _setBackColor, None, 
    264             _("Background color of this node  (wx.Colour)") ) 
     264            _("Background color of this node  (str, 3-tuple, or wx.Colour)") ) 
    265265             
    266266    Caption = property(_getCap, _setCap, None, 
     
    301301 
    302302    ForeColor = property(_getForeColor, _setForeColor, None, 
    303             _("Foreground (text) color of this node  (wx.Colour)") ) 
     303            _("Foreground (text) color of this node  (str, 3-tuple, or wx.Colour)") ) 
    304304     
    305305    FullCaption = property(_getFullCaption, None, None, 
     
    455455        """ 
    456456        self.lockDisplay() 
     457        sel = self.Selection 
    457458        ndExp = [(nd, nd.Expanded) for nd in self.nodes 
    458  
    459459                if ((not nd.IsRootNode) or self.ShowRootNode)] 
    460460        self.collapseAll() 
    461461        for nd, exp in ndExp: 
    462462            nd.Expanded = exp 
     463        self.Selection = sel 
    463464        self.unlockDisplay() 
    464465