mansrz / pymt

Automatically exported from code.google.com/p/pymt
0 stars 0 forks source link

Slide+ Grid Layout = Meh! #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by sharath....@gmail.com on 3 Aug 2009 at 2:10

GoogleCodeExporter commented 9 years ago
Can you provide a test case ?

Original comment by txprog on 3 Aug 2009 at 3:51

GoogleCodeExporter commented 9 years ago
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()

Original comment by sharath....@gmail.com on 3 Aug 2009 at 3:58

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 7fc82b6109.

Original comment by txprog on 5 Aug 2009 at 1:15

GoogleCodeExporter commented 9 years ago
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 !

Original comment by txprog on 5 Aug 2009 at 1:15