import clanimate import time animator = clanimate.Animator('progress_bar', 10, name='Loading', todo_char='-', done_char='#', showcounter=False) animator.start_animation() for i in range(10): time.sleep(1) animator.increment() animator.end_animation()
import clanimate import time animator = clanimate.Animator('scroll_text', 10, name='Loading', sleep_time=0.1, animation_frames='...') animator.start_animation() time.sleep(3) animator.end_animation()
from __future__ import print_function, unicode_literals from PyInquirer import style_from_dict, Token, prompt from pyfiglet import Figlet from colorama import Fore, Style import json import clanimate import yaml jsonData = ["emptyData"] loadingAnim = clanimate.Animator( "scroll_text", 10, name=" => WebEdge Is Scrapping Your Website ", animation_frames="===============", ) style = style_from_dict({ Token.Separator: "#cc5454", Token.QuestionMark: "#00ff00 bold", Token.Selected: "#cc5454", # default Token.Pointer: "#673ab7 bold", Token.Instruction: "", # default Token.Answer: "#0000ff bold", Token.Question: "", }) def shouldc2(answers): check1 = answers["c1"] if check1 != "site": return True
import clanimate import time animator = clanimate.Animator('wheel', 10, name='Loading') animator.start_animation() time.sleep(3) animator.end_animation()