Export to GitHub

pymt - issue #278

MT


Posted on Jul 4, 2010 by Grumpy Monkey

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.

Comment #1

Posted on Jul 4, 2010 by Grumpy Monkey

Sorry for the bad title, I don't know what happened.

Comment #2

Posted on Jul 6, 2010 by Happy Camel

It's bg-color-down, not color-down, if you want to set background to red :)

Comment #3

Posted on Jul 6, 2010 by Grumpy Monkey

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?

Comment #4

Posted on Jul 6, 2010 by Happy Camel

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 :/)

Status: Invalid

Labels:
Type-Defect Priority-Medium