Thread
:
Multitasking and GTK with python
View Single Post
McLightning
2010-04-03 , 13:47
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
__________________
Mplayer Full ShortCut List
http://www.keyxl.com/aaa2fa5/302/MPl...-shortcuts.htm
Mclightning.com
DegCal - Right Triangle Degree Calculator
Last edited by McLightning; 2010-04-03 at
13:51
.
Quote & Reply
|
McLightning
View Public Profile
Send a private message to McLightning
Find all posts by McLightning