| 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) |
|---|