timlau / py_rasmil

Misc Python LIbray

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rasmil Misc Tools Python Libraty

Libraries

rasmil.xfce

class Xfconf : Library to access Xfce conf

rasmil.widgets

contains custom gtk3 widgets

class CircularProgressBar : an Circular ProgressBar widget with 2 lines of text in the center with customizable fonts

alt text

rasmil.materials

Contains Google Material Design color palettes

https://material.io/design/color/the-color-system.html#tools-for-picking-colors

USAGE:

MATERIAL.<ColorName>.Shade<ShadeValue>

Methods Description
MATERIAL.colors Gives a list of available color names
MATERIAL.<ColorName>.shades Returns a list of available shades for a give color

test.py

from rasmil.material import MATERIAL

print(MATERIAL.colors)
print(MATERIAL.Teal.shades)
print(MATERIAL.Green.Shade100)

Output

python3 test.py

['Red', 'Pink', 'Purple', 'DeepPurple', 'Indigo', 'Blue', 'LightBlue', 'Cyan', 'Teal', 'Green', 'LightGreen', 'Lime', 'Yellow', 'Amber', 'Orange', 'DeepOrange', 'Brown', 'Gray', 'BlueGray']
['Shade50', 'Shade100', 'Shade200', 'Shade300', 'Shade400', 'Shade500', 'Shade600', 'Shade700', 'Shade800', 'Shade900', 'ShadeA100', 'ShadeA200', 'ShadeA400', 'ShadeA700']
#C8E6C9

About

Misc Python LIbray

License:GNU General Public License v3.0


Languages

Language:Python 94.9%Language:Makefile 5.1%