- Revision
- 16052
- Author
- stearns
- Date
- 2007-12-05 15:02:00 -0800 (Wed, 05 Dec 2007)
Log Message
default sizing of checkboxes & dropdowns works, so remove those hacks
Modified Paths
Diff
Modified: branches/detail_layout/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py (16051 => 16052)
--- branches/detail_layout/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py 2007-12-05 22:18:29 UTC (rev 16051) +++ branches/detail_layout/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py 2007-12-05 23:02:00 UTC (rev 16052) @@ -1115,20 +1115,7 @@ def CreateControl (self, forEditing, readOnly, parentWidget, id, parentBlock, font): - - # Figure out the size we should be - size = wx.DefaultSize - if font is not None and parentBlock is not None: - measurements = Styles.getMeasurements(font) - try: - parentWidth = parentBlock.minimumSize.width - except: - parentWidth = wx.DefaultSize.width - size = wx.Size(parentWidth, - measurements.checkboxCtrlHeight) - - control = AECheckBox(parentWidget, id, u"", - wx.DefaultPosition, size) + control = AECheckBox(parentWidget, id) control.Bind(wx.EVT_CHECKBOX, self.onChecked) if readOnly: control.Enable(False)
Modified: branches/detail_layout/chandler/parcels/osaf/framework/blocks/Styles.py (16051 => 16052)
--- branches/detail_layout/chandler/parcels/osaf/framework/blocks/Styles.py 2007-12-05 22:18:29 UTC (rev 16051) +++ branches/detail_layout/chandler/parcels/osaf/framework/blocks/Styles.py 2007-12-05 23:02:00 UTC (rev 16052) @@ -231,8 +231,6 @@ # *** These really should go away... self.textCtrlHeight = self.height + 6 - self.choiceCtrlHeight = self.height + 8 - self.checkboxCtrlHeight = self.height + 6 # Don't need to worry about descenders/leaders bcs digits dont have 'em (i think?) # Lots of proportional fonts seem to have monospaced digits, so using
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
