Created
April 14, 2013 23:49
-
-
Save ihaque/5384747 to your computer and use it in GitHub Desktop.
Short demo program illustrating Kivy bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import multiprocessing | |
multiprocessing.log_to_stderr().setLevel(logging.DEBUG) | |
import kivy | |
from kivy.app import App | |
from kivy.uix.button import Button | |
class MyApp(App): | |
def build(self): | |
return Button(text='foo', on_touch_down=self.runpool) | |
def runpool(self, *args): | |
pool = multiprocessing.Pool() | |
pool.terminate() | |
if __name__ == "__main__": | |
MyApp().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment