Issue 278: MT
Status:  Invalid
Owner: ----
Closed:  Jul 2010
Reported by linuxm...@googlemail.com, Jul 4, 2010
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
Sorry for the bad title, I don't know what happened.
Jul 6, 2010
Project Member #2 txprog
It's bg-color-down, not color-down, if you want to set background to red :)
Status: Invalid
Jul 6, 2010
#3 linuxm...@googlemail.com
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
Project Member #4 txprog
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 :/)