14

pygtk threads and labels

view full story
linux-howto

https://bbs.archlinux.org – Hi everyone,I'm working on a project for a museum, as a volunteer. I'm writing a piece of software that interacts with an Arduino, and then displays data to a computer screen (an old iBook G4 running Debian). I'm having some trouble with my code, so I broke it down and am now trying to figure out how to change the contents of a label in pygtk. Here's my code:import pygtkimport gtkimport serialimport threadingpygtk.require('2.0')class doThread(threading.Thread):  def run(self):    global label    label.set_markup("<span font='C (HowTos)