Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. @staticmethod
  2. def send_message():
  3. # timer = threading.Timer(3, _thread.interrupt_main)
  4. while True:
  5. #while True:
  6. # timer.start()
  7. # stry:
  8. # command = input("CHOOSE MESSAGE TYPE (TEXT/FILE/QUIT)\n")
  9. # break
  10. # except KeyboardInterrupt:
  11. # print("cas vyprsal")
  12. # timer.cancel()
  13.  
  14. command = input("CHOOSE MESSAGE TYPE (TEXT/FILE/QUIT)\n")
  15. if command == "QUIT":
  16. Sender.sender_close()
  17. break
  18. elif command == "TEXT":
  19. Sender.send_text()
  20. elif command == "FILE":
  21. Sender.send_file()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement