Skip to content

Instantly share code, notes, and snippets.

@ihaque
Created April 14, 2013 23:49
Show Gist options
  • Save ihaque/5384747 to your computer and use it in GitHub Desktop.
Save ihaque/5384747 to your computer and use it in GitHub Desktop.
Short demo program illustrating Kivy bug
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