Python Question
Voters
GeoneveStudios
@RYANTADIPARTHI Thats helpful
RYANTADIPARTHI
@DashStudios no problem.
GeoneveStudios
@RYANTADIPARTHI I'm waiting for 2 more answers to see which is the best
awesomecds7
if you want to make one with graphics, you have to use a moudule called tkinter
import tkinter as tk from tkinter import * from tkinter.ttk import * ####LOADING SCREEN#### import time for i in range(3): ws = Tk() def step(): for i in range(37): ws.update_idletasks() pb1['value'] += random.choice(adl) time.sleep(random.choice(wl)) pb1.destroy() ws.destroy() pb1 = Progressbar(ws, orient=HORIZONTAL, length=379, mode='determinate') pb1.pack(expand=True) step()
awesomecds7
@awesomecds7 Please note that this will loop 3 times.
GeoneveStudios
@19wintersp post was the most helpful
Mozyyoo
I would use Pygame for that, but that's more so game graphics. If you are looking for that though, i recommend this tutorial: https://www.youtube.com/watch?v=UdsNBIzsmlI
GeoneveStudios
Does anyone know how to make a loading animation.
What kind do you want? If you want to overwrite the current line, you can use a carriage return (
"\r"
). The main thing is having different frames of the animation, and cycling between them:@19wintersp Thank you; but can it be more simple than that. Because I'm probably going to forget that.
@DashStudios
I'm really don't understand your point here. This is a bare-bones implementation of doing this.
@19wintersp nevermind I get it now