如何使程序窗口变为活动状态? - Python

时间:2017-03-13 11:36:53

标签: python

所以我做了一个提醒程序。 它就像:

import time
task=input("Which Reminder Do You Want Me To Give you?     ")
print("After what time should i remind you   ")
timeh=int(input("Hour(s)   "))
timem=int(input("Minute(s)   "))
times=timeh*60*60+timem*60
if (timeh<0 & timem<0):
    print("Okay I will remind you after ",timeh," hour(s) and ",timem,"       minute(s). No worries")
    time.sleep(times)
    print("You had said ...",task,"... some ",timeh," hour(s) and ",timem," minute(s) earlier. Remember?")
elif (timeh==0):
    print("Okay I will remind you after ",timem," minute(s). No worries")
    time.sleep(times)
    print("You had said ...",task,"... some ",timem," minute(s) earlier. Remember?")
elif (timem==0):
    print("Okay I will remind you after ",timeh," hour(s). No worries")
    time.sleep(times)
    print("You had said ...",task,"... some ",timeh," hour(s) earlier. Remember?")

当程序再次变为活动状态时,如何使窗口变为活动状态?

0 个答案:

没有答案