Changeset 2947
- Timestamp:
- 03/21/07 04:49:49 (2 years ago)
- Files:
-
- trunk/dabo/dEvents.py (modified) (1 diff)
- trunk/dabo/ui/uiwx/__init__.py (modified) (2 diffs)
- trunk/dabo/ui/uiwx/dGridSizer.py (modified) (3 diffs)
- trunk/dabo/ui/uiwx/dRadioGroup.py (deleted)
- trunk/dabo/ui/uiwx/dSizerMixin.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/dEvents.py
r2923 r2947 274 274 return issubclass(objectClass, (ui.dBitmapButton, ui.dButton, 275 275 ui.dCheckBox, ui.dComboBox, ui.dDropdownList, ui.dEditBox, 276 ui.dListBox, ui.dRadio Group, ui.dSlider, ui.dSpinner, ui.dTextBox,276 ui.dListBox, ui.dRadioList, ui.dSlider, ui.dSpinner, ui.dTextBox, 277 277 ui.dTimer, ui.dToggleButton, ui.dMenuItem)) 278 278 appliesToClass = classmethod(appliesToClass) trunk/dabo/ui/uiwx/__init__.py
r2931 r2947 112 112 from dMenuItem import * 113 113 import dMessageBox 114 from dRadioGroup import dRadioGroup115 114 from dRadioList import dRadioList 116 115 from dPanel import dPanel … … 1083 1082 1084 1083 def fontMetricFromFont(txt, font): 1084 if isinstance(font, dabo.ui.dFont): 1085 font = font._nativeFont 1085 1086 wind = wx.Frame(None) 1086 1087 dc = wx.ClientDC(wind) trunk/dabo/ui/uiwx/dGridSizer.py
r2945 r2947 63 63 def append(self, item, layout="normal", row=-1, col=-1, 64 64 rowSpan=1, colSpan=1, alignment=None, halign="left", 65 valign="middle", border=0, borderSides=("all",), 66 borderFlags=("all",), flag=None): 65 valign="middle", border=0, borderSides=("all",), flag=None): 67 66 """ Inserts the passed item at the specified position in the grid. If no 68 67 position is specified, the item is inserted at the first available open 69 68 cell as specified by the Max* properties. 70 69 """ 71 if borderSides is None:72 if borderFlags is not None:73 warnings.warn(_("Deprecation warning: use 'borderSides' parameter instead."), DeprecationWarning, stacklevel=2)74 borderSides = borderFlags75 70 (targetRow, targetCol) = self._determineAvailableCell(row, col) 76 71 if isinstance(item, (tuple, int)): … … 245 240 246 241 247 def isRowGrowable(self, row):248 warnings.warn(_("Deprecated; use 'getRowExpand' instead."), DeprecationWarning, stacklevel=2)249 return self.getRowExpand(row)250 251 252 242 def getRowExpand(self, row): 253 243 """Returns True if the specified row is growable.""" … … 255 245 256 246 257 def isColGrowable(self, col):258 warnings.warn(_("Deprecated; use 'getColExpand' instead."), DeprecationWarning, stacklevel=2)259 return self.getColExpand(col)260 261 262 247 def getColExpand(self, col): 263 248 """Returns True if the specified column is growable.""" trunk/dabo/ui/uiwx/dSizerMixin.py
r2926 r2947 81 81 82 82 def append(self, obj, layout="normal", proportion=0, alignment=None, 83 halign="left", valign="top", border=None, borderSides=None, 84 borderFlags=None): 83 halign="left", valign="top", border=None, borderSides=None): 85 84 """Adds the passed object to the end of the sizer layout.""" 86 87 if borderSides is None:88 if borderFlags is not None:89 dabo.errorLog.write(_("Depracation warning: use 'borderSides' parameter instead."))90 borderSides = borderFlags91 85 return self.insert(len(self.Children), obj, layout=layout, proportion=proportion, 92 86 alignment=alignment, halign=halign, valign=valign, border=border, … … 102 96 103 97 def insert(self, index, obj, layout="normal", proportion=0, alignment=None, 104 halign="left", valign="top", border=None, borderSides=None, 105 borderFlags=None): 98 halign="left", valign="top", border=None, borderSides=None): 106 99 """Inserts the passed object into the sizer layout at the specified position.""" 107 if borderSides is None:108 if borderFlags is not None:109 dabo.errorLog.write(_("Deprecation warning: use 'borderSides' parameter instead."))110 borderSides = borderFlags111 100 if isinstance(layout, int): 112 101 # proportion was passed first … … 154 143 155 144 def prepend(self, obj, layout="normal", proportion=0, alignment=None, 156 halign="left", valign="top", border=None, borderSides=None, 157 borderFlags=None): 145 halign="left", valign="top", border=None, borderSides=None): 158 146 """Insert the object at the beginning of the sizer layout.""" 159 147 return self.insert(0, obj, layout=layout, proportion=proportion, 160 148 alignment=alignment, halign=halign, valign=valign, border=border, 161 borderSides=None , borderFlags=None)149 borderSides=None) 162 150 prepend.__doc__ += _doc_additions 163 151 … … 626 614 if layout.lower() in ("expand", "ex", "exp", "x", "grow"): 627 615 _wxFlags = _wxFlags | self.expandFlag 616 elif layout.lower() == "shaped": 617 _wxFlags = _wxFlags | wx.SHAPED 628 618 elif layout.lower() == "fixed": 629 619 _wxFlags = _wxFlags | self.fixedFlag
