fix orientation of ticker vs price top vs bottom
This commit is contained in:
parent
96d2af4c3f
commit
e8c39012a9
1 changed files with 5 additions and 5 deletions
|
|
@ -25,14 +25,14 @@ def print_trade(p, symbol, lots, price):
|
|||
else:
|
||||
price_str = f"{price:.2f}"
|
||||
|
||||
# Symbol characters at the top (left-aligned)
|
||||
# Symbol characters at the top (right-aligned)
|
||||
for ch in symbol:
|
||||
p.text(ch + "\n")
|
||||
|
||||
# Price characters at the bottom (right-aligned)
|
||||
for ch in price_str:
|
||||
p.text(" " * (LINE_WIDTH - 1) + ch + "\n")
|
||||
|
||||
# Price characters at the bottom (left-aligned)
|
||||
for ch in price_str:
|
||||
p.text(ch + "\n")
|
||||
|
||||
# Blank line separator between trades
|
||||
p.text("\n")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue