- if event.type == pygame.QUIT or (
- event.type == pygame.KEYDOWN and
- event.mod == 4160 and
- event.key == pygame.K_c):
- for thread in threading.enumerate():
- if thread.getName()[0:2] != "MS":
- continue
- thread.join()
-
- pygame.quit()
- sys.exit()
-
- if context == 'normal':
- if event.type == pygame.KEYDOWN:
- key = mapping.find_by_key_num(event.key)
- if key is not None:
- threading.Thread(name = "MSKeyAction", target=key.do_actions).start()
- elif event.type == pygame.MOUSEBUTTONUP:
- key = mapping.find_by_collidepoint(pygame.mouse.get_pos())
- if key is not None:
- threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start()
-
- draw_lock.acquire()
- pygame.display.flip()
- draw_lock.release()
-
-#### In Ipython ####
-# for thread in threading.enumerate():
-# if thread.getName()[0:2] != "MS":
-# continue
-# thread.join()
+ self.action_list.append([icon, description])
+
+class Screen(FloatLayout):
+ pass
+
+class MusicSamplerApp(App):
+ def build(self):
+ Window.size = (913, 563)
+
+ return Screen()
+
+if __name__ == '__main__':
+ MusicSamplerApp().run()