forked from Support/sp-hydra-veil-gui
Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd77439a24 |
3 changed files with 11 additions and 7 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
import logging
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
_WORKSPACE_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
if _WORKSPACE_ROOT not in sys.path:
|
||||||
|
sys.path.insert(0, _WORKSPACE_ROOT)
|
||||||
|
|
||||||
|
import logging
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from PyQt6.QtWidgets import (
|
from PyQt6.QtWidgets import (
|
||||||
|
|
@ -63,9 +68,8 @@ class CustomWindow(QMainWindow):
|
||||||
sys.excepthook = self._handle_exception
|
sys.excepthook = self._handle_exception
|
||||||
self.setWindowFlags(Qt.WindowType.Window)
|
self.setWindowFlags(Qt.WindowType.Window)
|
||||||
|
|
||||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
gui_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
parent_dir = os.path.dirname(current_dir)
|
font_path = os.path.join(gui_dir, 'resources', 'fonts')
|
||||||
font_path = os.path.join(parent_dir, 'resources', 'fonts')
|
|
||||||
|
|
||||||
retro_gaming_path = os.path.join(font_path, 'retro-gaming.ttf')
|
retro_gaming_path = os.path.join(font_path, 'retro-gaming.ttf')
|
||||||
font_id = QFontDatabase.addApplicationFont(retro_gaming_path)
|
font_id = QFontDatabase.addApplicationFont(retro_gaming_path)
|
||||||
|
|
@ -101,9 +105,9 @@ class CustomWindow(QMainWindow):
|
||||||
self.gui_cache_home, self.gui_config_home, self.gui_config_file)
|
self.gui_cache_home, self.gui_config_home, self.gui_config_file)
|
||||||
|
|
||||||
self.btn_path = os.getenv('BTN_PATH', os.path.join(
|
self.btn_path = os.getenv('BTN_PATH', os.path.join(
|
||||||
parent_dir, 'resources', 'images'))
|
gui_dir, 'resources', 'images'))
|
||||||
self.css_path = os.getenv('CSS_PATH', os.path.join(
|
self.css_path = os.getenv('CSS_PATH', os.path.join(
|
||||||
parent_dir, 'resources', 'styles'))
|
gui_dir, 'resources', 'styles'))
|
||||||
|
|
||||||
self.is_downloading = False
|
self.is_downloading = False
|
||||||
self.current_profile_id = None
|
self.current_profile_id = None
|
||||||
0
gui/___main__.py → gui/main_v1.py
Executable file → Normal file
0
gui/___main__.py → gui/main_v1.py
Executable file → Normal file
|
|
@ -405,7 +405,7 @@ class PaymentDetailsPage(Page):
|
||||||
self.update_status.update_status('Awaiting ticket payment...')
|
self.update_status.update_status('Awaiting ticket payment...')
|
||||||
|
|
||||||
def _on_ticket_check_failed(self, msg):
|
def _on_ticket_check_failed(self, msg):
|
||||||
self.update_status.update_status(f'Payment check failed: {msg}')
|
self.update_status.update_status('Not Paid')
|
||||||
|
|
||||||
def show_qr_code(self):
|
def show_qr_code(self):
|
||||||
full_amount = self.text_fields[2].text()
|
full_amount = self.text_fields[2].text()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue