This repository has been archived by the owner on Feb 17, 2025. It is now read-only.
-
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.
feat: Añadir configuración de UI y carga inicial
- Loading branch information
1 parent
c0f7aad
commit 4e1470b
Showing
4 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
import sys | ||
import signal | ||
import os | ||
from PyQt6.QtWidgets import QApplication | ||
from src.NavaleWindow import NavaleWindow | ||
from PyQt6.QtCore import QFileSystemWatcher | ||
|
||
app = QApplication(sys.argv) | ||
files = [os.path.expanduser('~') + '/.config/vasak/vasak.conf'] | ||
watcher = QFileSystemWatcher(files) | ||
watcher.addPaths(files) | ||
|
||
if __name__ == "__main__": | ||
app.setApplicationName("Navale") | ||
app.setApplicationVersion("0.1.1") | ||
app.setOrganizationName("Vasak Group") | ||
window = NavaleWindow() | ||
window.show() | ||
watcher.fileChanged.connect(window.load_ui_config) | ||
signal.signal(signal.SIGINT, signal.SIG_DFL) # Habilitar Ctrl+C | ||
sys.exit(app.exec()) | ||
|
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