Skip to content

Commit

Permalink
Remove PyQt5 import and add section to the About page
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMoolenaar committed Jul 12, 2022
1 parent 4a0d1d5 commit 7ca0fd1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from os.path import dirname, join
from aqt import mw
from .jsgui import Ui_Dialog
from PyQt5 import QtWidgets
from operator import itemgetter
addon_path = dirname(__file__)
import platform
Expand Down
19 changes: 19 additions & 0 deletions src/jsgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,24 @@ def setupUi(self, Dialog):
self.tab_4 = QWidget()
self.tab_4.setObjectName("tab_4")
self.tab4vl = QVBoxLayout()

# Updated About section
self.updatedAbout = QGroupBox()
self.updatedAbout.setStyleSheet("QGroupBox { font-weight: bold; } ")
self.updatedAbout.setTitle("About this addon")
self.updatedAboutVL = QVBoxLayout()
aboutLabel = QLabel(
'This is an unofficial <a href="https://en.wikipedia.org/wiki/Fork_(software_development)">fork</a> of the Migaku Japanese Addon. The goal of this fork is to ' +
'be compatible with the latest Anki versions and do some more small improvements (see the README on Github for the full list).<br> Please note that this version '+
'is maintained by Mike Moolenaar and not affiliated with Migaku in any way. Don\'t report any issues with this version to the official migaku repository, but rather use '+
'<a href="https://github.com/MikeMoolenaar/MIA-Japanese-Add-on/">this Github page</a>. Refer to the README there for more info.<br>'+
'Please feel free to create an issue if you have any problems and I wish you the best of luck with Language Learning :).<br><br>'+
'The original about section continues below.')
aboutLabel.setWordWrap(True)
aboutLabel.setOpenExternalLinks(True)
self.updatedAboutVL.addWidget(aboutLabel)
self.updatedAbout.setLayout(self.updatedAboutVL)

self.migakuAbout = QGroupBox()
self.migakuAbout.setTitle('Migaku')
self.migakuAboutVL = QVBoxLayout()
Expand Down Expand Up @@ -781,6 +799,7 @@ def setupUi(self, Dialog):
self.migakuContactVL.addWidget(self.gitHubIcon)
self.migakuContact.setLayout(self.migakuContactVL)
self.migakuThanks.setLayout(self.migakuThanksVL)
self.tab4vl.addWidget(self.updatedAbout)
self.tab4vl.addWidget(self.migakuAbout)
self.tab4vl.addWidget(self.migakuContact)
self.tab4vl.addWidget(self.migakuThanks)
Expand Down

0 comments on commit 7ca0fd1

Please sign in to comment.