View Single Post
Posts: 308 | Thanked: 62 times | Joined on Jun 2009 @ Turkiye
#7
import threading
class gui(threading.Thread):
__def __init__(self):
____self.a=0
____.......
____threading.Thread.__init__(self)
__def run(self):
____while 1:
______print self.a
______self.a=self.a+1

gui().start()
gtk.main()

but in this case print function stopping after gtk.main() shows up
im sorry i know im asking a lot :/ :/ im a total noob :/
thanks for help

EDIT: it starts to print again after i close gtkwindow

Last edited by McLightning; 2010-04-03 at 13:51.