komodo thread problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ajikoe@gmail.com

    #1

    komodo thread problem

    Komodo problem with threading:

    Hello,

    I can't run this program:

    def printtime(Max):
    i = 0
    while True:
    time.sleep(1)
    print time.ctime(time .time())
    i+=1
    if i==Max : break
    pass

    if __name__ == "__main__":

    thread.start_ne w_thread(printt ime,(2,))

    But it runs inside IDLE.

    pujo

Working...