Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TabulateJarl8 committed Jul 18, 2021
1 parent 48f37c9 commit a5f7368
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ti842py/__version__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__title__ = "ti842py"
__description__ = "TI-BASIC to Python 3 Transpiler"
__url__ = "https://github.com/TabulateJarl8/ti842py"
__version__ = "0.8.2"
__version__ = "0.8.3"
__author__ = "Tabulate"
__author_email__ = "[email protected]"
__license__ = "GPLv3"
Expand Down
6 changes: 4 additions & 2 deletions ti842py/utils/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import time
import tkinter.font as tkfont
import decimal
import re


BLUE = 10
Expand Down Expand Up @@ -64,8 +65,9 @@ def tiColorToGraphicsColor(self, color, isBackground=False):
color = str(color)
for color1, color2 in self.colors.items():
color = color.replace(color1, color2)
for color1, color2 in self.colorNumbers.items():
color = color.replace(color1, color2)
color = re.sub(r'(\d+)', lambda m: self.colorNumbers.get(m.group(), '[ERR:DOMAIN]'), color)
if '[ERR:DOMAIN]' in color:
raise ValueError('The specified color value was not in range 10-24')
if color not in self.colors.values():
# Failsafe
if not isBackground:
Expand Down
2 changes: 0 additions & 2 deletions ti842py/utils/getKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ def __init__(self):
" ": 102,
".": 103,
":": 103,
"-": 104,
"?": 104,
"−": 104,
pynput.keyboard.Key.enter: 105
}

Expand Down

0 comments on commit a5f7368

Please sign in to comment.