Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/AdvancedPy/src/AdvancedPy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from PySide6.QtGui import QGuiApplication
from PySide6.QtQml import QQmlApplicationEngine, qmlRegisterSingletonType
from PySide6.QtCore import qInstallMessageHandler
from PySide6.QtGui import QIcon

# It is usually assumed that the EasyApp package is already installed in the desired python environment.
# If this is not the case, and if the example is run from the EasyApp repository, one need to add the path to the
Expand All @@ -33,6 +34,7 @@

app = QGuiApplication(sys.argv)
console.debug(f'Qt Application created {app}')
app.setWindowIcon(QIcon(str(CURRENT_DIR / 'Gui' / 'Resources' / 'Logos' / 'App.svg')))

engine = QQmlApplicationEngine()
console.debug(f'QML application engine created {engine}')
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/EasyApp/Gui/Style/Fonts.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ QtObject {
property FontLoader nunitoLight: FontLoader { source: fontPath("Nunito", "Nunito-Light.ttf") } // font.weight: Font.Light
property FontLoader nunitoSemiBold: FontLoader { source: fontPath("Nunito", "Nunito-SemiBold.ttf") } // font.weight: Font.DemiBold

property FontLoader fontAwesomeSolid: FontLoader { source: fontPath("FontAwesome", "Font Awesome 5 Free-Solid-900.otf") }
property FontLoader fontAwesomeSolid: FontLoader { source: fontPath("FontAwesome", "Font Awesome 7 Free-Solid-900.otf") }

// Font families
readonly property string fontFamily: ptSansRegular.name
Expand Down
4 changes: 2 additions & 2 deletions src/EasyApp/Logic/Utils/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

# Utils

def generalizePath(fpath: str) -> str:
def generalize_path(fpath: str) -> str:
"""
Generalize the filepath to be platform-specific, so all file operations
can be performed.
:param URI rcfPath: URI to the file
:param URI fpath: URI to the file
:return URI filename: platform specific URI
"""
filename = urlparse(fpath).path
Expand Down