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 <reinhard.muel...@bytewise.at> properties: branch-nick: forms + timestamp: 2010-09-30 09:36:31.028000116 +0200 committer: Reinhard Müller <reinhard.muel...@bytewise.at> 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 reinhard.muel...@bytewise.at-20100426083500-vtmq0qvd7htz02zx 3117 reinhard.muel...@bytewise.at-20100512151744-2jx8tmtop30kl5n0 3118 reinhard.muel...@bytewise.at-20100705094014-ks9yv7b8gs6ychrb 3119 reinhard.muel...@bytewise.at-20100706085143-hyxadj30ayg28jpx 3120 reinhard.muel...@bytewise.at-20100706140804-sn3npws1ykm81ubx 3121 reinhard.muel...@bytewise.at-20100909134008-5p7jq048nkutldse 3122 reinhard.muel...@bytewise.at-20100923144753-e8hthxho7n5mwg9z 3123 reinhard.muel...@bytewise.at-20100929193018-7r3injoy8g28fwm6 + 3116 reinhard.muel...@bytewise.at-20100426083500-vtmq0qvd7htz02zx 3117 reinhard.muel...@bytewise.at-20100512151744-2jx8tmtop30kl5n0 3118 reinhard.muel...@bytewise.at-20100705094014-ks9yv7b8gs6ychrb 3119 reinhard.muel...@bytewise.at-20100706085143-hyxadj30ayg28jpx 3120 reinhard.muel...@bytewise.at-20100706140804-sn3npws1ykm81ubx 3121 reinhard.muel...@bytewise.at-20100909134008-5p7jq048nkutldse 3122 reinhard.muel...@bytewise.at-20100923144753-e8hthxho7n5mwg9z 3123 reinhard.muel...@bytewise.at-20100929193018-7r3injoy8g28fwm6 3124 reinhard.muel...@bytewise.at-20100930073631-ilf6smgjt6mfvkpz Name: bzr:text-parents - src/GFForm.py reinhard.muel...@bytewise.at-20100706140804-sn3npws1ykm81ubx + 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 commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue