PyGUI as a standard GUI API for Python?

David Boddie david at boddie.org.uk
Tue Oct 14 19:11:14 EDT 2008


On Tuesday 14 October 2008 12:55, lkcl wrote:

>  hello_loader.py is the main.... err.... um....  i just double-
> checked, so i'd be able to advise you and... err... the problem i
> described (with the GridTest) seems to have... gone away!!

There are lots of references to PyGTK classes in there. Is there a
way to select Qt instead of GTK?

>  however, clicking too fast _did_ end up with fifty little windows of
> text (!)
> 
>  and the respect for text boundaries is definitely broken - shrink the
> window to 300 x 400 with the kitchensink example (which is where i
> stopped and moved to webkit, so all the _other_ examples prior to that
> will work) and you'll see that the text in a column down the left hand
> side end up all overlapping each other.  so, you get to see the top
> few pixels of each word.

Hacking the code a bit, I can run the hello_loader.py example. The items
on the left do indeed overlap. It looks like the minimum size of the
labels aren't being respected for some reason.

>  if there's a way to enforce the displaying of text - for the _text_
> to say "i need to be a total area of X in order to display my words.
> if you make my width too small, i will _force_ my height to be larger
> as i wrap the text".

Yes, there are ways to relate the height of a widget to its width, and
there may well be a way to do that for a standard text widget, but it
might involve some experimentation with the underlying text document.

David



More information about the Python-list mailing list