CSS: Draw shapes with css attributes !
CSS: Draw shapes with css attributes !
-
pymt.graphx.css.drawCSSRectangle(pos=(0, 0), size=(100, 100), style={}, prefix=None, state=None)
Draw a rectangle with CSS
| Parameters : |
- state: if a certain state string is passed, we will use styles with this postifx instead.
for example: style[bg-color] and style[bg-color-down] are both set.
if state == “down”, we wil use bg-color-down instead of bg-color
|
| Styles : |
- alpha-background (color)
- border-radius (float)
- border-radius-precision (float)
- border-width (float)
- draw-alpha-background (bool)
- draw-background (bool)
- draw-border (bool)
|