Skip to content

Commit e690ab3

Browse files
authored
Merge pull request #287 from MorseKOB/es-pkts
Key timing graph - use dark shade rather than solid block for 'mark' …
2 parents 673fcc3 + 9351efb commit e690ab3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

mkobkeytimewin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, wpm, codeType=config.CodeType.american, local_enable=True, wi
7979
self._fb.columnconfigure(0, weight=1)
8080
self._fb.rowconfigure(0, weight=1)
8181
# graph
82-
self._txtGraph = tkst.ScrolledText(self._fb, wrap='none', font=("Courier", -14))
82+
self._txtGraph = tkst.ScrolledText(self._fb, wrap='none', font='TkFixedFont')
8383
#self._txtGraph.rowconfigure(0, weight=1)
8484
#self._txtGraph.columnconfigure(0, weight=2)
8585
self._txtGraph.grid(row=0, column=0, padx=2, pady=2, sticky=tk.E+tk.W+tk.N+tk.S)
@@ -187,28 +187,28 @@ def key_closed(self):
187187
Call when the key is closed to cause a marker to be put in the graph.
188188
"""
189189
if self._varLocalOn.get():
190-
self.append(">{}\n".format('\u21A7' * 100)) # 100 Down Arrows
190+
self.append("\u25BA{}\n".format('\u21A7' * 100)) # 100 Down Arrows
191191

192192
def key_opened(self):
193193
"""
194194
Call when the key is opened to cause a marker to be put in the graph.
195195
"""
196196
if self._varLocalOn.get():
197-
self.append(">{}\n".format('\u21A5' * 100)) # 100 Up Arrows
197+
self.append("\u25BA{}\n".format('\u21A5' * 100)) # 100 Up Arrows
198198

199199
def key_code(self, code):
200200
"""
201201
Call when the key has code.
202202
"""
203203
if self._varLocalOn.get():
204-
self.output_code_lines(code, '>')
204+
self.output_code_lines(code, '\u25BA ') # '>'
205205

206206
def wire_code(self, code):
207207
"""
208208
Call when code comes in from the wire.
209209
"""
210210
if self._varWireOn.get():
211-
self.output_code_lines(code, '<')
211+
self.output_code_lines(code, '\u25C4 ') # '<'
212212

213213
def output_code_lines(self, code, indicator):
214214
wpm = self._wpm
@@ -275,7 +275,7 @@ def output_code_lines(self, code, indicator):
275275
bar_value = 119
276276
bar_end = '!'
277277
tag = TAG_ERROR
278-
bar_char = '\u2501' if i < 0 else '\u2587' # line or 7/8 block
278+
bar_char = '\u25AC' if i < 0 else '\u2593' # line or dark block
279279
if i_abs >= 10000:
280280
i = 9999 * (-1 if i < 0 else 1)
281281
s1 = self._gen_line_text(indicator, i, expected_len, error, like)

0 commit comments

Comments
 (0)