This commit is contained in:
恍兮惚兮 2024-12-24 23:07:58 +08:00
parent 9f038b3c1e
commit e5c6fa89e8
2 changed files with 14 additions and 4 deletions

View File

@ -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(_)

View File

@ -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(_)