diff --git a/magictk/__init__.py b/magictk/__init__.py index 5948ac9..b8baf1a 100644 --- a/magictk/__init__.py +++ b/magictk/__init__.py @@ -9,3 +9,4 @@ from magictk.frame import Frame, Container from magictk.entry import Entry from magictk.scrollbar import ScrollBar from magictk.icon import Icon +from magictk.style import load_icon_pack, set_color_style diff --git a/magictk/style.py b/magictk/style.py new file mode 100644 index 0000000..25fe037 --- /dev/null +++ b/magictk/style.py @@ -0,0 +1,15 @@ +import pickle +from magictk import photoload +from magictk import color_tmpl + + +def set_color_style(color_set={}, **kwargs): + if color_set == {}: + color_tmpl.default_color.update(kwargs) + else: + color_tmpl.default_color.update(color_set) + + +def load_icon_pack(path): + with open(path, "rb") as file: + photoload.image_all.update(pickle.load(file)) diff --git a/setup.py b/setup.py index 4b20c4a..dd43c77 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os from setuptools import setup ####### config ####### -VERSION = "0.0.2" +VERSION = "1.0.0" ###################### set_v = VERSION @@ -12,7 +12,7 @@ if (os.path.exists("runid.conf")): runid = file.read() set_v = set_v+"."+runid else: - set_v = set_v+"."+"1000" + set_v = set_v+"."+"10000" print("BUILD: version="+set_v)