Changeset 4139
- Timestamp:
- 06/16/08 16:55:11 (5 months ago)
- Files:
-
- trunk/dabo/ui/uiwx/dFormMixin.py (modified) (4 diffs)
- trunk/dabo/ui/uiwx/dPemMixin.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/ui/uiwx/dFormMixin.py
r4119 r4139 61 61 # Flag to denote temporary forms 62 62 self._tempForm = False 63 # Transparency level64 self._transparency = None65 63 # Defaults for window sizing 66 64 self._defaultLeft = 50 … … 958 956 959 957 960 def _getTransparency(self):961 return self._transparency962 963 def _setTransparency(self, val):964 if self._constructed():965 val = min(max(val, 0), 255)966 self._transparency = val967 self.SetTransparent(val)968 else:969 self._properties["Transparency"] = val970 971 972 958 def _getWindowState(self): 973 959 try: … … 1116 1102 _("Tool bar for this form. (dToolBar)")) 1117 1103 1118 Transparency = property(_getTransparency, _setTransparency, None,1119 _("""Transparency level of the form; ranges from 0 (transparent) to 255 (opaque).1120 Default=0. Does not currently work on Gtk/Linux. (int)"""))1121 1122 1123 1104 WindowState = property(_getWindowState, _setWindowState, None, 1124 1105 _("""Specifies the current state of the form. (int) … … 1142 1123 DynamicStatusText = makeDynamicProperty(StatusText) 1143 1124 DynamicToolBar = makeDynamicProperty(ToolBar) 1144 DynamicTransparency = makeDynamicProperty(Transparency)1145 1125 DynamicWindowState = makeDynamicProperty(WindowState) trunk/dabo/ui/uiwx/dPemMixin.py
r4115 r4139 38 38 # has been constructed. 39 39 self._delayedEventBindings = [] 40 # Transparency level 41 self._transparency = 255 40 42 41 43 # There are a few controls that don't yet support 3-way inits (grid, for … … 2470 2472 self._properties["Top"] = val 2471 2473 2472 2474 2475 def _getTransparency(self): 2476 return self._transparency 2477 2478 def _setTransparency(self, val): 2479 if self._constructed(): 2480 val = min(max(val, 0), 255) 2481 self._transparency = val 2482 self.SetTransparent(val) 2483 else: 2484 self._properties["Transparency"] = val 2485 2486 2473 2487 def _getVisible(self): 2474 2488 try: … … 2702 2716 Top = property(_getTop, _setTop, None, 2703 2717 _("The top position of the object. (int)") ) 2718 2719 Transparency = property(_getTransparency, _setTransparency, None, 2720 _("""Transparency level of the control; ranges from 0 (transparent) to 255 (opaque). 2721 Default=0. Does not currently work on Gtk/Linux. (int)""")) 2704 2722 2705 2723 Visible = property(_getVisible, _setVisible, None, … … 2737 2755 DynamicToolTipText = makeDynamicProperty(ToolTipText) 2738 2756 DynamicTop = makeDynamicProperty(Top) 2757 DynamicTransparency = makeDynamicProperty(Transparency) 2739 2758 DynamicVisible = makeDynamicProperty(Visible) 2740 2759 DynamicWidth = makeDynamicProperty(Width)
