rebase codebase, delete trunk, move threads to backend
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
|
||||
from .dialog_sources.Ui_about import Ui_about
|
||||
from PyQt6 import QtWidgets
|
||||
from PyQt6.QtCore import PYQT_VERSION_STR
|
||||
from src import (
|
||||
Icon,
|
||||
__version__,
|
||||
__author__
|
||||
)
|
||||
from src import Icon, __version__, __author__
|
||||
from omegaconf import OmegaConf
|
||||
|
||||
|
||||
class About(QtWidgets.QDialog, Ui_about):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
@@ -15,33 +12,35 @@ class About(QtWidgets.QDialog, Ui_about):
|
||||
self.setWindowIcon(Icon("info").icon)
|
||||
self.setWindowTitle("About")
|
||||
self.setInfo()
|
||||
|
||||
|
||||
def test(self):
|
||||
pass
|
||||
|
||||
def setInfo(self):
|
||||
#add left most column to columnview
|
||||
# add left most column to columnview
|
||||
data = {
|
||||
"Version": __version__,
|
||||
"Author": __author__,
|
||||
"PyQt6 Version": PYQT_VERSION_STR,
|
||||
"License": "MIT License",
|
||||
"Icons":"""Google Material Design Icons (https://fonts.google.com/icons)
|
||||
"Icons": """Google Material Design Icons (https://fonts.google.com/icons)
|
||||
StableDiffusion (logo)
|
||||
svgrepo (https://www.svgrepo.com)"""
|
||||
svgrepo (https://www.svgrepo.com)""",
|
||||
}
|
||||
description = ""
|
||||
for key, value in data.items():
|
||||
description += f"{key}: {value}\n"
|
||||
self.description.setText(description)
|
||||
|
||||
|
||||
pass
|
||||
|
||||
|
||||
def launch_about():
|
||||
app = QtWidgets.QApplication([])
|
||||
window = About()
|
||||
window.show()
|
||||
app.exec()
|
||||
app.exec()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
pass
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user