Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. #GUI
  2. def start():
  3. os.startfile("run.vbs")
  4.  
  5. def skip():
  6. os.startfile("skip.lnk")
  7.  
  8. start = Button( #Первая кнопка которая должна быть нажата один раз и после этого стать некликабельной
  9. text="Launch",
  10. padx="14",
  11. pady="7",
  12. background="#16597E",
  13. foreground="#ffffff",
  14. activebackground="#ffffff",
  15. activeforeground="#16597E",
  16. font="Tahoma 12 bold",
  17. command=start)
  18.  
  19. start.place(
  20. relx=.5,
  21. rely=.08,
  22. anchor="c",
  23. height=30,
  24. width=150,
  25. bordermode=OUTSIDE)
  26.  
  27. skip = Button( #Вторая кнопка которая возвращает первую в исходное состояние
  28. text="Skip",
  29. padx="14",
  30. pady="7",
  31. background="#16597E",
  32. foreground="#ffffff",
  33. activebackground="#ffffff",
  34. activeforeground="#16597E",
  35. font="Tahoma 12 bold",
  36. command=skip)
  37.  
  38. skip.place(
  39. relx=.5,
  40. rely=.56,
  41. anchor="c",
  42. height=30,
  43. width=150,
  44. bordermode=OUTSIDE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement