Skip to content

Commit dd54cd7

Browse files
committed
Rename function to avoid confusion.
1 parent 619ebe4 commit dd54cd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tkintermd/frame.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __init__(self, master, **kwargs):
138138
default_text = constants.default_md_string
139139
self.text_area.insert(0.0, default_text)
140140
# Applies markdown formatting to default file.
141-
self.check_markdown(start="1.0", end=END)
141+
self.check_markdown_highlighting(start="1.0", end=END)
142142
self.text_area.focus_set()
143143

144144
# Create right click menu layout for the editor.
@@ -254,7 +254,7 @@ def open_md_file(self):
254254
open_filename_contents = stream.read()
255255
self.text_area.delete(1.0, END)
256256
self.text_area.insert(END, open_filename_contents)
257-
self.check_markdown(start="1.0", end=END)
257+
self.check_markdown_highlighting(start="1.0", end=END)
258258
constants.cur_file = Path(open_filename_md)
259259
except:
260260
mbox.showerror(title="Error", message=f"Error Opening Selected File\n\nThe file you selected: {open_filename_md} can not be opened!")
@@ -333,7 +333,7 @@ def on_input_change(self, event):
333333
self.preview_html.insert(END, html)
334334
self.preview_area.load_html(html)
335335
self.preview_area.add_css(self.css)
336-
self.check_markdown(start="1.0", end=END)
336+
self.check_markdown_highlighting(start="1.0", end=END)
337337
self.text_area.edit_modified(0) # resets the text widget to generate another event when another change occours
338338

339339
def load_style(self, stylename):
@@ -374,7 +374,7 @@ def load_style(self, stylename):
374374
self.preview_area.add_css(self.css)
375375
return self.syntax_highlighting_tags
376376

377-
def check_markdown(self, start='insert linestart', end='insert lineend'):
377+
def check_markdown_highlighting(self, start='insert linestart', end='insert lineend'):
378378
"""Formats editor content using the Pygments style."""
379379
self.data = self.text_area.get(start, end)
380380
while self.data and self.data[0] == '\n':

0 commit comments

Comments
 (0)