|
1 | 1 |
|
2 | 2 | #* Aurora Text Editor |
3 | 3 | #? Minimalistic text editor |
4 | | -#? Version: 0.8.1 |
| 4 | +#? Version: 0.8.2 |
5 | 5 |
|
6 | 6 | from tkinter import * |
7 | 7 | from tkinter.messagebox import askyesno, QUESTION, showwarning |
@@ -35,7 +35,7 @@ def is_modified_text_event(Event): |
35 | 35 |
|
36 | 36 | # <--- Window init |
37 | 37 | prog_name = 'Aurora Text Editor' |
38 | | -prog_version = ' v0.8.1' |
| 38 | +prog_version = ' v0.8.2' |
39 | 39 | window = Tk() |
40 | 40 | window.title(prog_name+prog_version) |
41 | 41 | # ---> |
@@ -273,17 +273,20 @@ def on_menu_set_font_style(style_str: str): |
273 | 273 | global font_name |
274 | 274 | global font_style |
275 | 275 |
|
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' |
279 | 282 |
|
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' |
283 | 286 |
|
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' |
287 | 290 |
|
288 | 291 | def on_menu_reset_font_size_style(): |
289 | 292 |
|
|
0 commit comments