mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Add non-Python assets to pyproj.toml
This commit is contained in:
parent
4648fa9c91
commit
8a19a916a0
2 changed files with 6 additions and 1 deletions
|
|
@ -38,6 +38,7 @@ class BeeAssets:
|
|||
logger.debug(f'Assets path: {self.PATH}')
|
||||
|
||||
self.logo = QtGui.QIcon(os.path.join(self.PATH, 'logo.png'))
|
||||
assert self.logo.isNull() is False
|
||||
self.cursor_rotate = self.cursor_from_image(
|
||||
'cursor_rotate.png', (20, 20))
|
||||
self.cursor_flip_h = self.cursor_from_image(
|
||||
|
|
@ -49,6 +50,7 @@ class BeeAssets:
|
|||
app = QtWidgets.QApplication.instance()
|
||||
scaling = app.primaryScreen().devicePixelRatio()
|
||||
img = QtGui.QImage(os.path.join(self.PATH, filename))
|
||||
assert img.isNull() is False
|
||||
pixmap = QtGui.QPixmap.fromImage(img)
|
||||
pixmap.setDevicePixelRatio(scaling)
|
||||
return QtGui.QCursor(
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
requires = ["setuptools>=61.0.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["beeref*"]
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
"*" = ["*.html", "*.png"]
|
||||
|
||||
[project]
|
||||
name = "BeeRef"
|
||||
version = "0.3.4-dev"
|
||||
|
|
|
|||
Loading…
Reference in a new issue