Skip to content

Commit

Permalink
style: added Qt and Python version to about cell-acdc widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ElpadoCan committed Jul 31, 2023
1 parent 2f31ea2 commit 94223c4
Show file tree
Hide file tree
Showing 4 changed files with 631,325 additions and 631,312 deletions.
7 changes: 5 additions & 2 deletions cellacdc/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,12 @@ def __init__(self, app, parent=None):
self.log_filename = log_filename
self.logs_path = logs_path

self.logger.info(f'Using Qt version {QtCore.__version__}')
py_ver = sys.version_info
python_version = f'{py_ver.major}.{py_ver.minor}.{py_ver.micro}'
self.logger.info(
f'Using Qt {QtCore.__version__} with Python {python_version}'
)


if not is_linux:
self.loadFonts()

Expand Down
10 changes: 9 additions & 1 deletion cellacdc/help/about.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import re
import sys
import cellacdc
from functools import partial

Expand All @@ -8,6 +8,7 @@
)
from qtpy.QtGui import QPixmap
from qtpy.QtCore import Qt
from qtpy import QtCore

from ..myutils import read_version
from ..myutils import get_pip_install_cellacdc_version_command
Expand All @@ -26,6 +27,9 @@ def __init__(self, parent=None):
layout = QGridLayout()

version = read_version()

py_ver = sys.version_info
python_version = f'{py_ver.major}.{py_ver.minor}.{py_ver.micro}'

titleLabel = QLabel()
txt = (f"""
Expand All @@ -38,6 +42,10 @@ def __init__(self, parent=None):
<p style="font-size:14px; font-family:ubuntu">
Version {version}
</p>
<p style="font-size:13px; font-family:ubuntu">
Qt {QtCore.__version__}<br>
Python {python_version}<br>
</p>
""")

titleLabel.setText(txt)
Expand Down
Loading

0 comments on commit 94223c4

Please sign in to comment.