Advertisement
Guest User

guizero

a guest
Mar 26th, 2020
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement