update #116

Merged
p9o3yklam merged 5 commits from main into maziang 3 months ago

@ -702,22 +702,7 @@ class WordStyleMainWindow(QMainWindow):
# 附加工具功能
weather_menu = view_menu.addMenu('附加工具')
# 显示天气工具组
self.show_weather_tools_action = QAction('显示天气工具', self)
self.show_weather_tools_action.setCheckable(True)
self.show_weather_tools_action.setChecked(False) # 默认不显示
self.show_weather_tools_action.triggered.connect(self.toggle_weather_tools)
weather_menu.addAction(self.show_weather_tools_action)
# 显示每日一言工具组
self.show_quote_tools_action = QAction('显示每日一言工具', self)
self.show_quote_tools_action.setCheckable(True)
self.show_quote_tools_action.setChecked(False) # 默认不显示
self.show_quote_tools_action.triggered.connect(self.toggle_quote_tools)
weather_menu.addAction(self.show_quote_tools_action)
weather_menu.addSeparator()
# 刷新天气
refresh_weather_action = QAction('刷新天气', self)

Loading…
Cancel
Save