Author: reinhard Date: 2010-10-11 14:22:02 -0500 (Mon, 11 Oct 2010) New Revision: 10200
Modified: trunk/gnue-forms/ trunk/gnue-forms/src/uidrivers/wx/widgets/box.py Log: Added missing function _ui_set_enabled_ to absolute box. Property changes on: trunk/gnue-forms ___________________________________________________________________ Name: bzr:revision-info - timestamp: 2010-09-29 21:30:18.700999975 +0200 committer: Reinhard Müller <[email protected]> properties: branch-nick: forms + timestamp: 2010-09-30 09:36:31.028000116 +0200 committer: Reinhard Müller <[email protected]> properties: branch-nick: forms Name: bzr:file-ids - src/GFForm.py 6...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:src%2FGFForm.py + src/uidrivers/wx/widgets/box.py 10...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:src%2Fuidrivers%2Fwx%2Fwidgets%2Fbox.py Name: bzr:revision-id:v4 - 3116 [email protected] 3117 [email protected] 3118 [email protected] 3119 [email protected] 3120 [email protected] 3121 [email protected] 3122 [email protected] 3123 [email protected] + 3116 [email protected] 3117 [email protected] 3118 [email protected] 3119 [email protected] 3120 [email protected] 3121 [email protected] 3122 [email protected] 3123 [email protected] 3124 [email protected] Name: bzr:text-parents - src/GFForm.py [email protected] + src/uidrivers/wx/widgets/box.py svn-v3-single1-dHJ1bmsvZ251ZS1mb3Jtcw..:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:10053 Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/box.py =================================================================== --- trunk/gnue-forms/src/uidrivers/wx/widgets/box.py 2010-10-05 07:54:45 UTC (rev 10199) +++ trunk/gnue-forms/src/uidrivers/wx/widgets/box.py 2010-10-11 19:22:02 UTC (rev 10200) @@ -68,10 +68,10 @@ self._container = parent # the border - box_title = wx.StaticBox(parent, -1, self._gfObject.label) + self.box = wx.StaticBox(parent, -1, self._gfObject.label) # a vbox linked to the border - box = wx.StaticBoxSizer(box_title, wx.VERTICAL) + box_sizer = wx.StaticBoxSizer(self.box, wx.VERTICAL) # a gridbag that will contain all the widgets inside the box self._sizer = wx.GridBagSizer() @@ -83,13 +83,13 @@ self._uiDriver.cellHeight * (height - 2))) # leave some border on top half = self._uiDriver.control_border('label') - box.Add((half, half)) - box.Add(self._sizer, 1) + box_sizer.Add((half, half)) + box_sizer.Add(self._sizer, 1) # the vertical box which will contain the box outer = wx.BoxSizer(wx.VERTICAL) outer.Add((half, half)) - outer.Add(box, 1, wx.ALIGN_CENTER_HORIZONTAL) + outer.Add(box_sizer, 1, wx.ALIGN_CENTER_HORIZONTAL) outer.Add((1, self._uiDriver.cellHeight / 2)) self.widget = outer @@ -125,6 +125,15 @@ border) + # ------------------------------------------------------------------------- + # Enable/disable this box + # ------------------------------------------------------------------------- + + def _ui_set_enabled_(self, value): + + self.box.Enable(value) + + # ============================================================================= # Configuration data # ============================================================================= _______________________________________________ commit-gnue mailing list [email protected] http://lists.gnu.org/mailman/listinfo/commit-gnue
