[gedit-list] how to use thread in pygtk in gedt-plugin?
- From: "jun louis" <louisliangjun gmail com>
- To: gedit-list gnome org
- Subject: [gedit-list] how to use thread in pygtk in gedt-plugin?
- Date: Mon, 30 Apr 2007 10:55:10 +0800
I write an c++ language helper, i want to do c++ parse work in backgroud, but the parse thread do not work or just work after I do some GUI events( such as press button).
code :
class ParseThread(threading.Thread
):
def run(self):
# do_parse_work
print '.'
self.sleep(1)
parse_thread = ParseThread()
parse_thread.start()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]