SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top