Randy Syring wrote:
I need a window
with a "strip" on top for some buttons and other controls, a "content
area", and then a footer "strip" with more controls. The content area
will have three columns and an indeterminate number of rows, each row
having a label, two text boxes, with a button in between the text
boxes. The content area will also need to refresh every time I load a
new data object so that the text fields are updated with the object's data.
I would suggest using a Row for the header strip, a Grid for
the content area, and another Row for the footer strip.
If the number of rows in the content area is known when the
window is created, you could use a Column to tie the header,
content area and footer together.
However, it sounds like you want the number of rows to vary
dynamically, something that isn't supported very well by
PyGUI's container objects at the moment. In that case, you
may be better off adding the three areas directly to the
Window and positioning them manually. Then when the number
of rows changes, you can discard the old content area,
create a new one and recalculate the layout. Something
like (making this a method of your Window):
def replace_content(self, new_content):
self.remove(self.content)
self.place(new_content, top = self.header)
self.content = new_content
self.place(self.footer, top = new_content)
self.shrink_wrap()
--
Greg
_______________________________________________
Pygui mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pygui