| Issue 84: | Slide+ Grid Layout = Meh! | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I was trying To attach a slider to a Gridlayout in horizontal orientation. The height of the slider increased from default 30px to fill the default size of the grid probably.
Aug 3, 2009
Project Member
#1
txprog
Aug 3, 2009
from pymt import * m = MTWindow() grid = MTGridLayout(rows=2,cols=2) m.add_widget(grid) blur = MTLabel(label="Blur") grid.add_widget(blur) blur_slide = MTSlider(min=0.0,max=5.0,pos=(blur.width+10,0),orientation="horizontal") grid.add_widget(blur_slide) sharp = MTLabel(label="Sharp",pos=(0,40)) grid.add_widget(sharp) sharp_slide = MTSlider(min=0.0,max=5.0,pos=(sharp.width+10,40),orientation="horizontal") grid.add_widget(sharp_slide) runTouchApp()
Status:
Aug 5, 2009
A not about this, don't pass position in widget, it will be overrided by layout anyway. It's useless :) Thanks for the bug report ! |