mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +08:00
.
This commit is contained in:
parent
9f038b3c1e
commit
e5c6fa89e8
@ -266,8 +266,13 @@ def createimageview(self):
|
||||
|
||||
|
||||
def changelog(self, basel: QHBoxLayout):
|
||||
_ = WebivewWidget(self)
|
||||
_.navigate(dynamiclink("{main_server}/ChangeLog"))
|
||||
link = dynamiclink("{main_server}/ChangeLog")
|
||||
try:
|
||||
_ = WebivewWidget(self)
|
||||
_.navigate(link)
|
||||
except:
|
||||
_ = QWidget()
|
||||
os.startfile(link)
|
||||
basel.addWidget(_)
|
||||
|
||||
|
||||
|
@ -193,7 +193,6 @@ def yearsummary(self, basel: QHBoxLayout):
|
||||
for m, info in everymonth_uid_time.items():
|
||||
tu_m[m] = getimages(info)
|
||||
developer, webtags = getallgamelabels(yearinfos)
|
||||
_ = WebivewWidget(self)
|
||||
with open("files/yearsummary/yearsummary.value.js", "w", encoding="utf8") as ff2:
|
||||
ff2.write(
|
||||
r"""
|
||||
@ -219,5 +218,11 @@ webtags={webtags}
|
||||
)
|
||||
)
|
||||
|
||||
_.navigate(os.path.abspath("files/yearsummary/yearsummary.html"))
|
||||
link = os.path.abspath("files/yearsummary/yearsummary.html")
|
||||
try:
|
||||
_ = WebivewWidget(self)
|
||||
_.navigate(link)
|
||||
except:
|
||||
_ = QWidget()
|
||||
os.startfile(link)
|
||||
basel.addWidget(_)
|
||||
|
Loading…
x
Reference in New Issue
Block a user