Changeset 3620

Show
Ignore:
Timestamp:
11/02/07 14:19:25 (1 year ago)
Author:
paul
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/demo/samples/dLabel.py

    r3511 r3620  
    8888                lbl = self.gettyLabel = dabo.ui.dLabel(self, Caption=txt, WordWrap=True) 
    8989                sz.append(lbl, 1, border=10) 
    90                 sz.appendSpacer(200) 
    9190                 
    9291                self.Caption = _("WordWrap Demo") 
    93                 self.Width = 80
    94                 self.Height = 60
     92                self.Width = 64
     93                self.Height = 48
    9594                self.layout() 
    96                 self.fitToSizer() 
    9795             
    9896            def onSlider(self, evt): 
     
    10098                self.gettyLabel.Width = wd 
    10199                 
    102         dlg = WordWrapDialog(self, BorderResizable=True) 
    103         dlg.Centered = True 
     100        dlg = WordWrapDialog(self, BorderResizable=True, AutoSize=False, Centered=True) 
    104101        dlg.show() 
    105102