| Issue 278: | MT | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
#!/usr/bin/env python
from pymt import *
if __name__ == '__main__':
mycss = 'button{color-down: rgba(150, 0, 0, 150); bg-color: rgba(0, 0, 0, 150)}'
css_add_sheet(mycss)
button = MTButton(label = 'Test', font_size = 16, width = 200, height = 50)
runTouchApp(button)
What is the expected output? What do you see instead?
I see a black button.
When I click on it I see a blue button instead a red.
What version of the product are you using? On what operating system?
I use the git version on Archlinux.
Jul 4, 2010
#1
linuxm...@googlemail.com
Jul 6, 2010
It's bg-color-down, not color-down, if you want to set background to red :)
Status:
Invalid
Jul 6, 2010
OK, an invalid bug again. Is there any documentation about the git version? Because the documentation says that it is: "color-down : color" http://pymt.txzone.net/docs/api/api-pymt.ui.widgets.button.html Maybe the documentation has a bug?
Jul 6, 2010
If you use the master (and so, the old named "trunk"), you should use the trunk documentation as well : http://pymt.eu/docs/api-trunk/api-pymt.ui.widgets.button.html This documentation is builded every 30 minutes, with unittest and pep8checker. I've done a fix to be more clear about the usage of styles (hope that's help :/) |