-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: avoid loading kivy when constants are imported
- Loading branch information
Showing
8 changed files
with
94 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "ubo-gui" | ||
version = "0.13.1" | ||
version = "0.13.2" | ||
description = "GUI sdk for Ubo Pod" | ||
authors = ["Sassan Haradji <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
@@ -9,7 +9,7 @@ packages = [{ include = "ubo_gui" }] | |
include = ['ubo_gui/assets/fonts/*'] | ||
|
||
[tool.poetry.dependencies] | ||
headless-kivy = "^0.9.7" | ||
headless-kivy = "^0.9.8" | ||
python = "^3.11" | ||
python-immutable = "^1.0.2" | ||
qrcode = "^7.4.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,6 @@ | ||
"""Module for defining constants used in the `Menu` widget.""" | ||
|
||
from kivy.lang.builder import Builder | ||
|
||
from ubo_gui.page import PAGE_MAX_ITEMS | ||
|
||
PAGE_SIZE = PAGE_MAX_ITEMS | ||
PAGE_SIZE = 3 # PAGE_MAX_ITEMS | ||
SHORT_WIDTH = 46 | ||
MENU_ITEM_HEIGHT = 52 | ||
MENU_ITEM_GAP = 7 | ||
|
||
Builder.load_string( | ||
f""" | ||
#:set UBO_GUI_PAGE_SIZE {PAGE_SIZE} | ||
#:set UBO_GUI_SHORT_WIDTH {SHORT_WIDTH} | ||
#:set UBO_GUI_MENU_ITEM_HEIGHT {MENU_ITEM_HEIGHT} | ||
#:set UBO_GUI_MENU_ITEM_GAP {MENU_ITEM_GAP} | ||
""", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters