My favorites
▼
|
Sign in
pymt
PyMT, a framework for making accelerated multitouch UI
Project Home
Downloads
Issues
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
260
attachment: testcase.py
(659 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import threading
from pymt import *
class Main(object):
def __init__(self):
self.thread = AThread()
def run(self):
# start thread, returns immediately
self.thread.start()
# start touch app, returns?
runTouchApp(MTWidget())
print 'not reached without return in `finally: stopTouchApp()` (pymt/base.py:367)!'
self.thread.stop()
class AThread(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.quit = False
def run(self):
while not self.quit:
print 'alive'
def stop(self):
self.quit = True
m = Main()
m.run()
Powered by
Google Project Hosting