[Commits] (donn) Set the minumum size for EditText blocks
commits at osafoundation.org
commits at osafoundation.org
Tue Aug 3 02:29:21 PDT 2004
Commit by: donn
Modified files:
chandler/parcels/osaf/framework/blocks/ControlBlocks.py 1.88 1.89
Log message:
Set the minumum size for EditText blocks
* SetSizeHints is being called with the right data
* The minimum size does not seem to be honored though
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/ControlBlocks.py.diff?r1=text&tr1=1.88&r2=text&tr2=1.89
Index: chandler/parcels/osaf/framework/blocks/ControlBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.88 chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.89
--- chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.88 Mon Jul 26 16:21:04 2004
+++ chandler/parcels/osaf/framework/blocks/ControlBlocks.py Tue Aug 3 02:29:20 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.88 $"
-__date__ = "$Date: 2004/07/26 23:21:04 $"
+__version__ = "$Revision: 1.89 $"
+__date__ = "$Date: 2004/08/03 09:29:20 $"
__copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -84,6 +84,8 @@
def __init__(self, *arguments, **keywords):
super (wxEditText, self).__init__ (*arguments, **keywords)
self.Bind(wx.EVT_TEXT_ENTER, self.OnEnterPressed, id=self.GetId())
+ minW, minH = arguments[-1] # assumes minimum size passed as last arg
+ self.SetSizeHints(minW=minW, minH=minH)
def OnEnterPressed(self, event):
self.blockItem.Post (Globals.repository.findPath('//parcels/osaf/framework/blocks/Events/EnterPressed'),
More information about the Commits
mailing list