Skip to content

Commit 460dbc3

Browse files
committed
Format variable names to match rest of codebase.
1 parent 7d5b351 commit 460dbc3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tkintermd/tkintermd_frame.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ def __init__(self, master, **kwargs):
8080
# self.image_btn = tk.Button(self.top_bar, text="Image")
8181
# self.image_btn.pack(side="left", padx=0, pady=0)
8282

83-
self.style_opt = tk.Menubutton(self.top_bar, text='Style =', relief='raised')
84-
self.style_opt.pack(side="left", padx=0, pady=0)
85-
stylemenu = tk.Menu(self.style_opt, tearoff=False)
86-
stylemenu.add_command(label='Light', command=lambda: self.load_style('stata'))
87-
stylemenu.add_command(label='Dark', command=lambda: self.load_style('stata-dark'))
88-
self.style_opt['menu'] = stylemenu
83+
self.style_opt_btn = tk.Menubutton(self.top_bar, text='Style =', relief='raised')
84+
self.style_opt_btn.pack(side="left", padx=0, pady=0)
85+
self.style_menu = tk.Menu(self.style_opt_btn, tearoff=False)
86+
self.style_menu.add_command(label='Light', command=lambda: self.load_style('stata'))
87+
self.style_menu.add_command(label='Dark', command=lambda: self.load_style('stata-dark'))
88+
self.style_opt_btn['menu'] = self.style_menu
8989

9090
self.top_bar.pack(side="top", fill="x")
9191

@@ -218,7 +218,7 @@ def on_input_change(self, event):
218218
self.preview_area.load_html(html)
219219
self.preview_area.add_css(self.css)
220220
self.check_markdown(start="1.0", end=END)
221-
self.text_area.edit_modified(0)#resets the text widget to generate another event when another change occours
221+
self.text_area.edit_modified(0) # resets the text widget to generate another event when another change occours
222222

223223
def load_style(self, stylename):
224224
"""Load Pygments style for syntax highlighting within the editor."""
@@ -242,7 +242,6 @@ def load_style(self, stylename):
242242
selectbackground=self.style.highlight_color)
243243
self.text_area.tag_configure(str(Generic.StrongEmph), font=('Monospace', 10, 'bold', 'italic'))
244244
self.syntax_highlighting_tags.append(str(Generic.StrongEmph))
245-
246245
self.css = 'body {background-color: %s; color: %s}' % (
247246
self.style.background_color,
248247
self.text_area.tag_cget("Token.Text", "foreground")

0 commit comments

Comments
 (0)