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
241
attachment: circularsliderbug.py
(824 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
from pymt import *
class MTCircularSliderBug(MTScatterWidget):
def __init__(self, **kwargs):
super(MTCircularSliderBug, self).__init__(**kwargs)
self.cs = MTCircularSlider(rotation=0.0)
self.layout = MTBoxLayout(bg_color=(1,0,0,0.5))
self.layout.add_widget(self.cs)
self.add_widget(self.layout)
class MTNormalSliderNotBug(MTScatterWidget):
def __init__(self, **kwargs):
super(MTNormalSliderNotBug, self).__init__(**kwargs)
self.s = MTSlider()
self.layout = MTBoxLayout(bg_color=(1,0,0,0.5))
self.layout.add_widget(self.s)
self.add_widget(self.layout)
cs = MTCircularSliderBug()
s = MTNormalSliderNotBug()
w = getWindow()
cs.pos = (w.width/2, w.height/2)
s.pos = (w.width/2, w.height/2)
# change this to use either 'cs' (buggy) or 's' (not buggy)
root = cs
runTouchApp(root)
Powered by
Google Project Hosting