File tree
Expand file treeCollapse file tree1 file changed
+6
-1
lines changed Sample GUI Implementation
Expand file treeCollapse file tree1 file changed
+6
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -468,7 +468,12 @@ def about():
|
468 | 468 | WINDOW_MENU.Update(show_status_menu_layout)
|
469 | 469 | STATUS_BAR_SWITCH = True
|
470 | 470 |
|
471 |
| -Column += 1 |
| 471 | +# Update the line and column values in the statusbar |
| 472 | +# with every character / escape sequences keyed-in. |
| 473 | +if EVENT == '-BODY-': |
| 474 | +Line, Column = WINDOW['-BODY-'].Widget.index('insert').split('.') |
| 475 | +WINDOW['status_bar'].update(f'| Ln {Line}, Col {Column}') |
| 476 | + |
472 | 477 | # record the text after each event to ensure the
|
473 | 478 | # file/text is saved.
|
474 | 479 | try:
|
|
You can’t perform that action at this time.
0 commit comments