Advertisement
Lucifer_Gaming

Untitled

Jan 16th, 2023
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. import curses
  2. import time
  3. import os
  4. stdscr = curses.initscr()
  5.  
  6. # Clear the screen
  7. stdscr.clear()
  8.  
  9. # Add title to the top of the screen
  10. stdscr.addstr(0, 50, "This Program is Being Run From Pastebin.com",
  11.               curses.A_STANDOUT)
  12. stdscr.refresh()
  13.  
  14. # Create loading animation
  15. loading_animation = ["|", "/", "-", "\\"]
  16.  
  17. for i in range(20):
  18.     for animation in loading_animation:
  19.         stdscr.addstr(10, 65, "Loading " + animation)
  20.         stdscr.refresh()
  21.         time.sleep(0.1)
  22.         stdscr.clear()
  23.         stdscr.addstr(
  24.             2, 50, "This Program is Being Run From Pastebin.com", curses.A_STANDOUT)
  25.         stdscr.addstr(13, 55, "Follow Me on Github @Py0x11")
  26.         stdscr.refresh()
  27. os.system("cls")
  28. os.system("pause")
  29. # End curses session
  30.  
  31. curses.endwin()
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement