Changeset 3123

Show
Ignore:
Timestamp:
05/11/07 09:54:41 (2 years ago)
Author:
nate
Message:

Reinserted the word wrap property I deleted during the merge.

Files:

Legend:

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

    r3120 r3123  
    3939        self.ShowPosition(self.GetLastPosition()) 
    4040        self.Refresh() 
    41          
     41     
     42     
     43    #Property getters and setters 
     44    def _getWordWrap(self): 
     45        return not self._hasWindowStyleFlag(wx.HSCROLL) 
     46     
     47    def _setWordWrap(self, val): 
     48        fontSize = self.GetFont().GetPointSize() 
     49        self._delWindowStyleFlag(wx.HSCROLL) 
     50        if not val: 
     51            self._addWindowStyleFlag(wx.HSCROLL) 
     52        dabo.ui.callAfter(self._setFontSize, fontSize) 
     53     
     54    # property definitions follow: 
     55    WordWrap = property(_getWordWrap, _setWordWrap, None, 
     56            _("""Specifies whether words get wrapped (the default). (bool) 
    4257 
     58            If False, a horizontal scrollbar will appear when a line is too long 
     59            to fit in the horizontal space.""")) 
    4360 
    4461