Skip to content

Commit 1b31ad9

Browse files
Update aurora_text_editor.py
1 parent 6430443 commit 1b31ad9

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

src/aurora_text_editor.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#* Aurora Text Editor
33
#? Minimalistic text editor
4-
#? Version: 0.8.1
4+
#? Version: 0.8.2
55

66
from tkinter import *
77
from tkinter.messagebox import askyesno, QUESTION, showwarning
@@ -35,7 +35,7 @@ def is_modified_text_event(Event):
3535

3636
# <--- Window init
3737
prog_name = 'Aurora Text Editor'
38-
prog_version = ' v0.8.1'
38+
prog_version = ' v0.8.2'
3939
window = Tk()
4040
window.title(prog_name+prog_version)
4141
# --->
@@ -273,17 +273,20 @@ def on_menu_set_font_style(style_str: str):
273273
global font_name
274274
global font_style
275275

276-
if style_str == 'normal':
277-
text.configure(font=(font_name, font_size, 'normal'))
278-
font_style = 'normal'
276+
text.configure(font=(font_name, font_size, style_str))
277+
font_style = style_str
278+
279+
# if style_str == 'normal':
280+
# text.configure(font=(font_name, font_size, 'normal'))
281+
# font_style = 'normal'
279282

280-
elif style_str == 'bold':
281-
text.configure(font=(font_name, font_size, 'bold'))
282-
font_style = 'bold'
283+
# elif style_str == 'bold':
284+
# text.configure(font=(font_name, font_size, 'bold'))
285+
# font_style = 'bold'
283286

284-
elif style_str == 'italic':
285-
text.configure(font=(font_name, font_size, 'italic'))
286-
font_style = 'italic'
287+
# elif style_str == 'italic':
288+
# text.configure(font=(font_name, font_size, 'italic'))
289+
# font_style = 'italic'
287290

288291
def on_menu_reset_font_size_style():
289292

0 commit comments

Comments
 (0)