Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rsalmei committed Mar 21, 2022
1 parent 1e0aaae commit 9234e29
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions alive_progress/styles/exhibit.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ def _showtime_gen(fps, gens, info, length):
if not sys.stdout.isatty():
raise UserWarning('This must be run on a tty connected terminal.')

title = lambda t, r=False: (
scrolling_spinner_factory(t, right=r, wrap=False).pause(center=12),)
message = lambda m, s=None: (
scrolling_spinner_factory(f'{m} 👏 ({s})' if s else m, right=False),)
def title(t, r=False):
return scrolling_spinner_factory(t, right=r, wrap=False).pause(center=12), # 1-tuple.

def message(m, s=None):
return scrolling_spinner_factory(f'{m} 👏 ({s})' if s else m, right=False), # 1-tuple.

info_spinners = sequential_spinner_factory(
*(title('Now on stage...')
+ message(*info.title)
Expand Down

0 comments on commit 9234e29

Please sign in to comment.