GUI Freezes when clicking a button in PyGtk
问题 I know this may be a recurring question, but I don't get the point in the other answers to that problem. First of all, here is my code (if you want syntax highlighting) : http://pastebin.com/9uJah8t2 #!/usr/bin/python2.7 from mega import Mega import pygtk import gtk import glib class HelloWorld: #def onSuccess(self, widget, data): def test(self, widget, data): email = self.login.get_text() password = self.password.get_text() mega = Mega() m = mega.login(email, password) details = m.get_user()