dabo Commit
Revision 6110
Date: 2010-10-17 05:51:45 -0700 (Sun, 17 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6110

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

Log:
Removed the sizing hacks I recently added to address the WordWrap problems we 
were seeing. With the change in r6109, the word wrapping works correctly.


Diff:
Modified: trunk/demo/samples/dBitmapButton.py
===================================================================
--- trunk/demo/samples/dBitmapButton.py 2010-10-17 12:49:32 UTC (rev 6109)
+++ trunk/demo/samples/dBitmapButton.py 2010-10-17 12:51:45 UTC (rev 6110)
@@ -19,9 +19,7 @@
                                "normal image will be the Ace of Hearts. If you 
click on them, the image " + \
                                "will change to the King of Spades for as long 
as you hold the mouse down."
                bsz = dabo.ui.dBorderSizer(self, "v")
-               bsz.append(lbl, 1, halign="center")
-               # This is the proportion used for the section with the cards.
-               bottomWeight = 4
+               bsz.append(lbl, halign="center")
                plat = self.Application.Platform
                if plat == "Mac":
                        cap = "These effects don't display on Mac OS X, 
unfortunately"
@@ -30,12 +28,11 @@
                else:
                        cap = ""
                if cap:
-                       bottomWeight -= 3
                        lbl = dabo.ui.dLabel(self, FontItalic=True, Caption=cap)
                        lbl.FontSize -= 4
                        bsz.appendSpacer(5)
                        bsz.append(lbl, halign="center")
-               sz.append(bsz, 1, halign="center")
+               sz.append(bsz, halign="center")
                sz.appendSpacer(20)
 
                hsz = dabo.ui.dSizer("h")
@@ -58,7 +55,7 @@
                btn.bindEvent(dEvents.Hit, self.onButtonHit)
                hsz.append(btn)
 
-               sz.append(hsz, 3, halign="center")
+               sz.append(hsz, halign="center")
                sz.layout()
 
 



_______________________________________________
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/[email protected]

Reply via email to