Thread
:
Multitasking and GTK with python
View Single Post
McLightning
2010-04-03 , 11:28
Posts: 308 | Thanked: 62 times | Joined on Jun 2009 @ Turkiye
#
1
hi everybody
im using python
i have a problem about "while loops"
but the problem is when i run gtk.main() function it is not allowing me to run another loop. :/ and if i run another loop it is stopping gtk window
:/
def read():
global sock
while 1:
a=sock.recv(1024)
if len(a)==0: break
print a
this is the function i need to run meanwhile gtk is running :/
please help
i googled a lil bit but i couldnt find a proper tutorial on handling multitasking
__________________
Mplayer Full ShortCut List
http://www.keyxl.com/aaa2fa5/302/MPl...-shortcuts.htm
Mclightning.com
DegCal - Right Triangle Degree Calculator
Quote & Reply
|
McLightning
View Public Profile
Send a private message to McLightning
Find all posts by McLightning