PyGUI as a standard GUI API for Python?

lkcl luke.leighton at googlemail.com
Mon Oct 13 05:42:16 EDT 2008


> >> You can remove layouts from layouts with the QLayout.removeItem() method.

> >  yes... it didn't work.  a layout within a layout - i think it was a
> > QHorizontalLayout within a QGridLayout - didn't want to be removed.
> > it's probably a bug.

> Was it detached from the layout, but still visible?

i don't know if it _was_ detached from the layout, but it was
definitely still visible.  see http://pyjs.org/examples/gridtest/output/GridTest.html
for the example i was porting to pyqt4.  each time i clicked "Next", a
new set of N,N would be _overlaid_ on top of the old ones, even though
i was doing removeItem().

the code's at http://lkcl.net/pyjamas-desktop/pyqt4.tgz

although i'm interested to know if there's a solution (to this
particular problem), the amount of additional work to provide an
equivalent of the "1px", "10em", "25%" etc. subdivisions on layouts,
and the amount of additional work to provide "flowing" and HTML-
substitutable layouts (see http://pyjd.org/api/pyjamas.ui.HTMLPanel-class.html)
is just... it's a lot of work.

l.



More information about the Python-list mailing list