[gedit-list] how to use thread in pygtk when make gedt-plugin?




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]