Label (or other widget) auto refresh?

Matias Hernandez Arellano msdark at archlinux.cl
Tue Jun 16 00:11:12 EDT 2009


Hi list...
I have a question for you..
First... sorry for my english, but i speak spanish xD..
I have a little GUI made with Glade and GtkBuilder...
in his gui when i click on a button i show a dialog window.. in this
dialog i put a label.. this label show some value.. this value was
reading from serial port.

The PC is connected to a Basic Stamp (a microcontroller), the Basic
Stamp write in the serial port a binary value every time when a some
sensor change..

I need to show this value in the label in the dialog window at the same
time when the basic stamp write to the serial port...

How can i  refresh the text in the label to show the change of the value
every time... instantaniely?

I think in a threads, but i can't get it...

Thanks a lot!!!!

-- 
Matias Hernández (Msdark)
www.msdark.archlinux.cl
ArchLinux-CL - WikiAdmin
MSN: matiasfh at gmail.com
Twitter : www.twitter.com/msdark
Plurk   : www.plurk.com/msdark
Linux User: #445065
http://keys.gnupg.net/pks/lookup?op=get&search=0xEA3EEC672189419C




More information about the Python-list mailing list