Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @staticmethod
- def send_message():
- # timer = threading.Timer(3, _thread.interrupt_main)
- while True:
- #while True:
- # timer.start()
- # stry:
- # command = input("CHOOSE MESSAGE TYPE (TEXT/FILE/QUIT)\n")
- # break
- # except KeyboardInterrupt:
- # print("cas vyprsal")
- # timer.cancel()
- command = input("CHOOSE MESSAGE TYPE (TEXT/FILE/QUIT)\n")
- if command == "QUIT":
- Sender.sender_close()
- break
- elif command == "TEXT":
- Sender.send_text()
- elif command == "FILE":
- Sender.send_file()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement