SHARE
TWEET

guizero

a guest Mar 26th, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #This is only a bit of fun!!! Makes a full screen red window that says your computer is infected with
  2. #a virus, then asks you to enter the virus' name you think your computer is infected with.
  3. #Then there is an error message saying that your computer is infected with the virus you just typed
  4.  
  5.  
  6. from guizero import App, TextBox, PushButton, Text, info
  7. app = App(height=1080, width=5000, bg = "red")
  8. app.set_full_screen()
  9. def btn_go_clicked():
  10.     app.warn("CRITICAL ERROR","Malware type " + txt_name.value + " has been found on this device.")
  11.  
  12.  
  13. lbl_name = Text(app, text="CRITICAL ERROR FOUND? Enter virus name below:")
  14. txt_name = TextBox(app)
  15. btn_go = PushButton(app, command=btn_go_clicked, text="Done")
  16.  
  17. app.display()
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