Skip to content

Commit

Permalink
恢复加载动画
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXnneHang committed Jul 14, 2024
1 parent b4604b1 commit 7d7d9a7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions yasumi_clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,16 @@ def list_main_button_pos(self):
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)

#loading_window = LoadingWindow()
#loading_window.show()

mainWindow = Main_Window_Response(None)
loading_window = LoadingWindow()
mainWindow = Main_Window_Response(loading_window)
mainWindow.setWindowIcon(QIcon(mainWindow.src_config["icon"]))
mainWindow.show()
loading_window.setWindowIcon(QIcon(mainWindow.src_config["icon"]))
loading_window.show()
# mainWindow.show()

#timer = QtCore.QTimer()
#timer.singleShot(1500, mainWindow.Show) # Delay mainWindow's show by 1 second
timer = QtCore.QTimer()
timer.singleShot(1000, mainWindow.Show) # Delay mainWindow's show by 1 second


sys.exit(app.exec_())

0 comments on commit 7d7d9a7

Please sign in to comment.