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:
#-- 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