[pygtk] Re: LCD-style display widget

Frédéric frederic.mantegazza at gbiloba.org
Mon Jun 23 14:51:11 WST 2008


Le 17/6/2008, "John Stowers" <john.stowers.lists at gmail.com> a =E9crit:

> You can zoom in and out with scroll
>wheel (and change brightness with ctrl+scroll). Double click to change
>text.

Hi,

I finally got something from the code you posted. I made a LCDLabel
widget, which is a simplified version of the LCD gui. There is only 1
row. I also corrected a bug: in the original code, moving the window
made the text disappear.

But I still have some problems:

1) I can't set the text before the label is shown, because the pixmap
does not exist yet... This is a design problem with the current GTK
internals usage :o/

2) The widget does not work when I embed it in my GUI. As I work with
glade, I simply added an empty HBox, and in my code, I instanciate the
LCDLabel, and add it to the HBox.

BTW, is there a better way to embed a custom widget in glade?

Thanks for your help,
-------------- section suivante --------------
Une pi?ce jointe non texte a ?t? nettoy?e...
Nom: lcdLabel.py
Type: text/x-python
Taille: 7052 octets
Desc: non disponible
Url: http://www.daa.com.au/pipermail/pygtk/attachments/20080623/44610b47/lc=
dLabel.py


More information about the pygtk mailing list