Skip to content

Commit

Permalink
定时180秒关闭二维码扫描页面
Browse files Browse the repository at this point in the history
closed #38
  • Loading branch information
lunzhiPenxil committed Jan 31, 2023
1 parent 4e32a9e commit 3967eff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OlivOS/nativeWinUIAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,15 +553,20 @@ def start(self):

self.UIObject['root'].iconbitmap('./resource/tmp_favoricon.ico')

self.UIObject['root'].after(180 * 1000, self.sleepExit)
self.UIObject['root'].mainloop()

self.exit()

def exit(self):
pass

def sleepExit(self):
self.stop()

def stop(self):
self.UIObject['root'].quit()
self.UIObject['root'].destroy()


class gocqhttpTerminalUI(object):
Expand Down

0 comments on commit 3967eff

Please sign in to comment.