I have been trying to get a control, to float in the middle of the 
screen(in code).
I figured on using two spacers.
Then I found Ed's "How to visually Float a Control..."
It agrees with what I thought I was doing. But it doesn't succeed either.
What am I missing?

class MainForm(dabo.ui.dForm):
    def afterInit(self):
        lbl = dabo.ui.dLabel(self, Caption="I'm meant to be in the 
middle !")
        sz = dabo.ui.dSizer("h")
        sz.appendSpacer(1, proportion=1)
        sz.append(lbl, proportion=0)
        sz.appendSpacer(1, proportion=1)
        self.Sizer.append(sz)
        self.layout()

At this stage I have left off the "expand", and valign="middle" to try 
to keep it simple.
The label appears in the top left corner of my window.
-- Fraser Burns
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to