get more library versions programmatically
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
import PySide6
|
import PySide6
|
||||||
|
import urllib3
|
||||||
|
from watchdog import version as watchdog_version
|
||||||
from PySide6.QtCore import Qt
|
from PySide6.QtCore import Qt
|
||||||
from PySide6.QtGui import QFont, QPixmap
|
from PySide6.QtGui import QFont, QPixmap
|
||||||
from PySide6.QtWidgets import *
|
from PySide6.QtWidgets import *
|
||||||
@@ -68,9 +70,13 @@ class AboutDialog(QDialog):
|
|||||||
<li>Ionicons (MIT) - <a href="https://github.com/ionic-team/ionicons">https://github.com/ionic-team/ionicons</a></li>
|
<li>Ionicons (MIT) - <a href="https://github.com/ionic-team/ionicons">https://github.com/ionic-team/ionicons</a></li>
|
||||||
<li>PySide6 {pyside} (LGPL v3) - <a href="https://doc.qt.io/qtforpython-6/">https://doc.qt.io/qtforpython-6/</a></li>
|
<li>PySide6 {pyside} (LGPL v3) - <a href="https://doc.qt.io/qtforpython-6/">https://doc.qt.io/qtforpython-6/</a></li>
|
||||||
<li>Qt6 {qt} (LGPL v3) - <a href="https://code.qt.io/cgit/qt/qtbase.git/">https://code.qt.io/cgit/qt/qtbase.git/</a></li>
|
<li>Qt6 {qt} (LGPL v3) - <a href="https://code.qt.io/cgit/qt/qtbase.git/">https://code.qt.io/cgit/qt/qtbase.git/</a></li>
|
||||||
<li>urllib3 (MIT) - <a href="https://github.com/urllib3/urllib3">https://github.com/urllib3/urllib3</a></li>
|
<li>urllib3 {urllib3} (MIT) - <a href="https://github.com/urllib3/urllib3">https://github.com/urllib3/urllib3</a></li>
|
||||||
<li>watchdog 2.16 (Apache 2.0) - <a href="https://github.com/gorakhargosh/watchdog">https://github.com/gorakhargosh/watchdog</a></li>
|
<li>watchdog {watchdog} (Apache 2.0) - <a href="https://github.com/gorakhargosh/watchdog">https://github.com/gorakhargosh/watchdog</a></li>
|
||||||
</ul>""".format(pyside=PySide6.__version__, qt=PySide6.QtCore.__version__)
|
</ul>""".format(
|
||||||
|
pyside=PySide6.__version__,
|
||||||
|
qt=PySide6.QtCore.__version__,
|
||||||
|
urllib3=urllib3.__version__,
|
||||||
|
watchdog=watchdog_version.VERSION_STRING)
|
||||||
label = textwrap.dedent(dependencies)
|
label = textwrap.dedent(dependencies)
|
||||||
|
|
||||||
result = QWidget()
|
result = QWidget()
|
||||||
|
|||||||
Reference in New Issue
Block a user