hound fixes and version for igniter

This commit is contained in:
Ondrej Samohel 2021-03-05 17:14:53 +01:00
parent 4fa47cbe01
commit 8db42c93c3
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
3 changed files with 9 additions and 3 deletions

View file

@ -14,6 +14,7 @@ from .tools import (
get_pype_path_from_db
)
from .user_settings import PypeSettingsRegistry
from .version import __version__
class FocusHandlingLineEdit(QtWidgets.QLineEdit):
@ -45,7 +46,7 @@ class InstallDialog(QtWidgets.QDialog):
self.mongo_url = os.getenv("PYPE_MONGO", "") or self.registry.get_secure_item("pypeMongo") or "" # noqa: E501
self.setWindowTitle("Pype - Configure Pype repository path")
self.setWindowTitle(f"Pype Igniter {__version__} - Pype installation")
self._icon_path = os.path.join(
os.path.dirname(__file__), 'pype_icon.png')
icon = QtGui.QIcon(self._icon_path)
@ -342,7 +343,7 @@ class InstallDialog(QtWidgets.QDialog):
color: rgb(72, 200, 150);
font-family: "Roboto Mono";
font-size: 0.5em;
border: 1px solid rgb(48, 48, 48);
border: 1px solid rgb(48, 48, 48);
}
QScrollBar:vertical {
border: 1px solid rgb(61, 115, 97);

View file

@ -143,7 +143,8 @@ class InstallThread(QThread):
except (PypeVersionExists,
PypeVersionInvalid,
PypeVersionIOError) as e:
self.message.emit(f"Installed failed", True)
self.message.emit(f"Installed failed: ", True)
self.message.emit(e, True)
self.finished.emit(InstallResult(-1))
self.message.emit(f"Installed as {local_pype}", False)

4
igniter/version.py Normal file
View file

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
"""Definition of Igniter version."""
__version__ = "1.0.0"