Commit b85f46dd authored by AJ Fite's avatar AJ Fite 🛫

Possibly fix the ui file import pathing

parent 4e26474d
0.0.5-ALPHA3
\ No newline at end of file
0.0.5-ALPHA4
\ No newline at end of file
......@@ -9,6 +9,7 @@ class AboutDialog(QDialog):
super().__init__(flags=Qt.WindowStaysOnTopHint)
version_file = open(os.path.join('.', 'VERSION'))
version = version_file.read().strip()
uic.loadUi('AboutDialog.ui', self)
ui_file = os.path.join('.', 'AboutDialog.ui')
uic.loadUi(ui_file, self)
self.show()
self.versionLabel.setText("Version: " + version)
......@@ -141,7 +141,8 @@ class Config:
class ConfigEditor(QDialog):
def __init__(self):
super().__init__(flags=Qt.WindowStaysOnTopHint)
uic.loadUi('SettingsDialog.ui', self)
ui_file = os.path.join('.', 'SettingsDialog.ui')
uic.loadUi(ui_file, self)
self.show()
self.update_configs()
......
......@@ -3,6 +3,7 @@ import os
import sys
import webbrowser
from PyQt5 import uic
from pkg_resources import resource_filename
from PyQt5.QtCore import QProcess, QProcessEnvironment, Qt
from PyQt5.QtWidgets import QMainWindow, QApplication
from watchdog.observers import Observer
......@@ -18,7 +19,8 @@ class MainWindow(QMainWindow):
def __init__(self):
super().__init__(flags=Qt.Window)
uic.loadUi('MainWindow.ui', self)
ui_file = os.path.join('.', 'MainWindow.ui')
uic.loadUi(ui_file, self)
self.passprompt = None
self.configdialog = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment