#1066: Sizer vertical alignment differences
------------------------+---------------------------------------------------
Reporter: paul | Owner: somebody
Type: discussion | Status: new
Priority: minor | Milestone: 0.9
Component: ui | Version: 0.8.x
Keywords: |
------------------------+---------------------------------------------------
I've noticed some differences in how different platforms do the vertical
alignment in horizontal sizers, and wanted to start a discussion of it
here. I'm using the trac ticket system because I couldn't figure out how
to upload images to a trac wiki.
To start the discussion, the following code is used, and screenshots made
from various platforms:
{{{
#!python
#-- begin test code (copy/paste to a .py file and run it)
import dabo
dabo.ui.loadUI("wx")
class MyPanel(dabo.ui.dPanel):
def afterInit(self):
vs = self.Sizer = dabo.ui.dSizer("v")
for alignment in ("top", "middle", "bottom"):
vs.appendSpacer(10)
hs = dabo.ui.dSizer("h")
hs.append(dabo.ui.dLabel(self, Caption="%s:" % alignment),
alignment=alignment)
hs.append(dabo.ui.dTextBox(self))
vs.append(hs)
if __name__ == "__main__":
app = dabo.dApp()
app.setup()
pan = MyPanel(app.MainForm)
app.start()
#-- end test code
}}}
--
Ticket URL: <http://svn.dabodev.com/trac/dabo/ticket/1066>
Dabo <http://svn.dabodev.com/trac/dabo>
Trac Page for Dabo
_______________________________________________
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]