View Single Post
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