File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11from time import sleep
22from typing import Callable , Any
33
4- from click_extra import progressbar
4+ from rich . progress import Progress , TextColumn , BarColumn , TaskProgressColumn
55
66from geocompy .geo import GeoCom
77from geocompy .communication import open_serial
@@ -90,12 +90,12 @@ def relay_message(
9090 unittime : float
9191) -> None :
9292 encoded = encode_message (message )
93- with progressbar (
94- encoded ,
95- label = "Relaying message" ,
96- show_eta = False
97- ) as stream :
98- for char in stream :
93+ with Progress (
94+ TextColumn ( "[progress.description]{task.description}" ) ,
95+ BarColumn () ,
96+ TaskProgressColumn ()
97+ ) as progress :
98+ for char in progress . track ( encoded , description = "Relaying message" ) :
9999 match char :
100100 case "." :
101101 beepstart ()
You can’t perform that action at this time.
0 commit comments