[gnue] r9771 - trunk/gnue-forms/src/uidrivers/wx26

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-07-31 04:52:39 -0500 (Tue, 31 Jul 2007)
New Revision: 9771

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/dialogs.py
Log:
Used GetDisplaySize instead of GetMaxSize; GetMaxSize returns (-1, -1) for
wx2.8.


Modified: trunk/gnue-forms/src/uidrivers/wx26/dialogs.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/dialogs.py	2007-07-30 18:08:10 UTC (rev 9770)
+++ trunk/gnue-forms/src/uidrivers/wx26/dialogs.py	2007-07-31 09:52:39 UTC (rev 9771)
@@ -465,7 +465,7 @@
         wx.DefaultSize, 0)
     gbs.Add (msg, (0, 1), flag = wx.EXPAND | wx.ALIGN_LEFT)
 
-    (mxW, mxH) = self.GetMaxSize ()
+    (mxW, mxH) = wx.GetDisplaySize ()
     h = (len (detail.splitlines ()) + 1) * (self.GetCharHeight () + 2)
     w = max ([len (i) for i in detail.splitlines ()]) * self.GetCharWidth ()
     size = (min (w, int (mxW * 0.9)), min (h, int (mxH * 0.8)))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.