dabo Commit
Revision 3620
Date: 2007-11-02 14:19:25 -0700 (Fri, 02 Nov 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3620

Changed:
U   trunk/demo/samples/dLabel.py

Log:
Removing fitToSizer() makes the WordWrap work sanely on Mac. I'd like to try 
this on Linux and Windows
next. I'm not saying that this is where the fix needs to be made, but it will 
help us understand where
the problem is. I have a hunch wx isn't adding in the current label height when 
figuring how to size 
things.


Diff:
Modified: trunk/demo/samples/dLabel.py
===================================================================
--- trunk/demo/samples/dLabel.py        2007-11-02 19:22:01 UTC (rev 3619)
+++ trunk/demo/samples/dLabel.py        2007-11-02 21:19:25 UTC (rev 3620)
@@ -87,20 +87,17 @@
                                txt = getGettyAddr()
                                lbl = self.gettyLabel = dabo.ui.dLabel(self, 
Caption=txt, WordWrap=True)
                                sz.append(lbl, 1, border=10)
-                               sz.appendSpacer(200)
                                
                                self.Caption = _("WordWrap Demo")
-                               self.Width = 800
-                               self.Height = 600
+                               self.Width = 640
+                               self.Height = 480
                                self.layout()
-                               self.fitToSizer()
                        
                        def onSlider(self, evt):
                                wd = (self.slider.Value/100.0) * 
self.slider.Width
                                self.gettyLabel.Width = wd
                                
-               dlg = WordWrapDialog(self, BorderResizable=True)
-               dlg.Centered = True
+               dlg = WordWrapDialog(self, BorderResizable=True, 
AutoSize=False, Centered=True)
                dlg.show()
 
 




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to