[app] adding config
This commit is contained in:
parent
f576f33cc5
commit
b87e7f1ffa
@ -2,9 +2,10 @@ import sys
|
||||
|
||||
from PyQt6.QtCore import QSettings
|
||||
from PyQt6.QtWidgets import QApplication
|
||||
from IPython import embed
|
||||
|
||||
from pyrelacs import info
|
||||
from pyrelacs.config.config_loader import Config
|
||||
from pyrelacs.config.config_loader import load_config
|
||||
from pyrelacs.ui.mainwindow import PyRelacs
|
||||
|
||||
from pyrelacs import (
|
||||
@ -28,10 +29,9 @@ def main():
|
||||
|
||||
# load the config
|
||||
|
||||
config = Config()
|
||||
|
||||
config = load_config()
|
||||
# start the app
|
||||
window = PyRelacs()
|
||||
window = PyRelacs(config)
|
||||
window.setMinimumWidth(200)
|
||||
window.setMinimumHeight(200)
|
||||
window.resize(width, height)
|
||||
|
Loading…
Reference in New Issue
Block a user