Skip to content

Commit 665cd7c

Browse files
committed
Demo Browser - One last change for the new path input... clear other fields if chars are entered
1 parent 0c69245 commit 665cd7c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import warnings
1515
import PySimpleGUI as sg
1616

17-
version = '5.2.0'
17+
version = '5.3.0'
1818
__version__ = version.split()[0]
1919

2020

@@ -55,6 +55,7 @@
5555
5.1.0 08-Apr-2024 Several new Demo Programs, updated Matplotlib ping demo, license ver 1.1
5656
5.2.0 14-Aug-2024 Fixed erronous import error (when import line started with "from")
5757
Added a new "Path" input so that an arbitrary file can be executed easily (or edited)
58+
5.3.0 15-Aug-2024 One last change for the new path input... clear other fields if chars are entered
5859
Copyright 2021, 2022, 2023, 2024 PySimpleSoft Inc.
5960
"""
6061

@@ -982,7 +983,17 @@ def main():
982983
window['-FILTER NUMBER-'].update(f'{len(new_list)} files')
983984
window['-FIND NUMBER-'].update('')
984985
window['-FIND-'].update('')
986+
window['-RUN PATH-'].update('')
985987
window['-FIND RE-'].update('')
988+
elif event == '-RUN PATH-':
989+
file_list = get_file_list()
990+
window['-FILTER-'].update('')
991+
window['-FILTER NUMBER-'].update(f'{len(file_list)} files')
992+
window['-FIND-'].update('')
993+
window['-DEMO LIST-'].update(file_list)
994+
window['-FIND NUMBER-'].update('')
995+
window['-FIND RE-'].update('')
996+
window['-ML-'].update('')
986997
elif event == '-FOCUS FIND-':
987998
window['-FIND-'].set_focus()
988999
elif event == '-FOCUS FILTER-':

0 commit comments

Comments
 (0)