I have a code that is running fine (connect to a page , get PHPSESSID) . when i put that code in a function , then made a thread of it :
Gdk.threads_enter()
threading.Thread(target=self.do_login,args=()).start()
Gdk.threads_leave()
the code hangs on
f = opener.open(req)
any ideas why ?
when i force close the application , it completes everything and prints everything in the terminal without errors . why does it hang on that particular line in thread only . it does not outside of a thread .