[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r10055 - trunk/gnue-forms/src/uidrivers/wx/widgets
From: |
reinhard |
Subject: |
[gnue] r10055 - trunk/gnue-forms/src/uidrivers/wx/widgets |
Date: |
Wed, 25 Nov 2009 07:46:50 -0600 (CST) |
Author: reinhard
Date: 2009-11-25 07:46:50 -0600 (Wed, 25 Nov 2009)
New Revision: 10055
Modified:
trunk/gnue-forms/src/uidrivers/wx/widgets/_base.py
trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py
Log:
Removed unused function get_minimum_size.
Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx/widgets/_base.py 2009-11-25 09:34:57 UTC
(rev 10054)
+++ trunk/gnue-forms/src/uidrivers/wx/widgets/_base.py 2009-11-25 13:46:50 UTC
(rev 10055)
@@ -60,17 +60,6 @@
# -------------------------------------------------------------------------
- # Get the minimum size of a widget
- # -------------------------------------------------------------------------
-
- def get_minimum_size(self):
- """
- Return a wx.Size with the minimum size of a widget
- """
- return wx.DefaultSize
-
-
- # -------------------------------------------------------------------------
# Get the default size
# -------------------------------------------------------------------------
Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py 2009-11-25 09:34:57 UTC
(rev 10054)
+++ trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py 2009-11-25 13:46:50 UTC
(rev 10055)
@@ -683,31 +683,6 @@
# -------------------------------------------------------------------------
- # Get the minimum size of a widget
- # -------------------------------------------------------------------------
-
- def get_minimum_size(self):
- """
- Return a wx.Size with the minimum size of a widget
- """
-
- # This is currently not used, because wx distributes the available
- # space based on the minimum size of the widgets instead of the "best"
- # or default size of the widgets. So we have to set the minimum size to
- # the same values as the default size.
- cellw = self._uiDriver.cellWidth
- cellh = self._uiDriver.cellHeight
-
- style = self._gfObject.style.lower()
- bw,bh = self._uiDriver.best_sizes.get(style, (-1, -1))
-
- minw = (self.min_width * cellw) or bw or -1
- minh = (self.min_height * cellh) or bh or -1
-
- return wx.Size(minw, minh)
-
-
- # -------------------------------------------------------------------------
# Get the default size
# -------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r10055 - trunk/gnue-forms/src/uidrivers/wx/widgets,
reinhard <=