Merge branch 'master' of github.com:UN-GCPDS/qt-material

This commit is contained in:
Yeison 2021-05-09 15:31:10 -05:00
commit 3590d89f89
3 changed files with 31 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import sys
import logging
import base64
from xml.etree import ElementTree
from pathlib import Path
from qt_material.resources import ResourseGenerator, RESOURCES_PATH
GUI = True
@ -377,3 +378,8 @@ class QtStyleTools:
button = getattr(self.dock_theme, f'pushButton_{color}')
button.clicked.connect(self.set_color(parent, color))
# ----------------------------------------------------------------------
def get_hook_dirs():
package_folder = Path(__file__).parent
return [str(package_folder.absolute())]

View File

@ -0,0 +1,19 @@
import qt_material
from pathlib import Path
qt_material_path = Path(qt_material.__file__).parent
fonts_path = qt_material_path / "fonts"
datas = [(str(fonts_path), "qt_material/fonts")]
themes_path = qt_material_path / "themes"
datas += [(str(themes_path), "qt_material/themes")]
dock_path = qt_material_path / "dock_theme.ui"
datas += [(str(dock_path), "qt_material")]
template_path = qt_material_path / "material.css.template"
datas += [(str(template_path), "qt_material")]
resources_path = qt_material_path / "resources"
datas += [(str(resources_path), "qt_material/resources")]

View File

@ -40,4 +40,10 @@ setup(
'Programming Language :: Python :: 3.7',
],
entry_points={
"pyinstaller40": [
"hook-dirs = qt_material:get_hook_dirs"
]
},
)