Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/python
- import hello
- from threading import Thread
- def myfunc():
- hello.HelloWorld().main()
- t = Thread(target=myfunc)
- t.start()
- print 'nstill running ???'
- #! /usr/bin/python
- import gtk
- from time import sleep
- from threading import Thread
- def myfunc():
- w = gtk.Window()
- l = gtk.Label()
- w.add(l)
- w.show_all()
- w.connect("destroy", lambda _: gtk.main_quit())
- gtk.main()
- def myfunc2():
- sleep (3)
- t = Thread(target=myfunc)
- #t = Thread(target=myfunc2)
- t.start()
- print 'nstill running ???'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement