I'm working on learning how to hand code forms. I haven't been able to find
a good tutorial/example online (are there any I'm missing?).
I have a form that contains a PageFrame. A page of the PageFrame contains a
Panel. The Panel contains a ListBox. I would like the ListBox to expand to
fill the vertical space, but when I add 'proportion=1', it expands too much
and causes a vertical scroll bar to appear on the form. Any idea what I'm
doing wrong?
The code I'm using is as follows.
The code for the Form:
def afterInit(self):
self.Sizer = dabo.ui.dSizer("v")
pf = dabo.ui.dPageFrame(self)
auth = dabo.ui.dPage(pf)
auth.Sizer = dabo.ui.dSizer("v")
ap = authPanel(auth)
auth.Sizer.append(ap, "expand", proportion=1)
pf.appendPage(auth, caption="Authors")
self.Sizer.append(pf, "expand", proportion=1)
self.layout()
The code for authPanel:
def afterInit(self):
self.Sizer=dabo.ui.dSizer("h")
s2 = dabo.ui.dBorderSizer(self, "v", Caption="Find author:")
self.authList = dabo.ui.dListControl(self)
self.searchBox = dabo.ui.dSearchBox(self, Width=150)
s2.append(self.authList, "expand", proportion=1)
s2.append(self.searchBox, "expand", border=10)
self.Sizer.append(s2, "expand")
self.layout()
Thanks,
Bronwyn
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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]