diff --git a/DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py b/DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py index 067ed006..406ea19f 100644 --- a/DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py +++ b/DemoPrograms/Browser_START_HERE_Demo_Programs_Browser.py @@ -5,6 +5,8 @@ import warnings import PySimpleGUI as sg +__version__ = '1.7.0' + """ PySimpleGUI Demo Program Browser @@ -468,6 +470,7 @@ def make_window(): right_col = [ [sg.Multiline(size=(70, 21), write_only=True, key=ML_KEY, reroute_stdout=True, echo_stdout_stderr=True, reroute_cprint=True)], [sg.B('Settings'), sg.Button('Exit')], + [sg.T('Demo Browser Ver ' + __version__)], [sg.T('PySimpleGUI ver ' + sg.version.split(' ')[0] + ' tkinter ver ' + sg.tclversion_detailed, font='Default 8', pad=(0,0))], [sg.T('Python ver ' + sys.version, font='Default 8', pad=(0,0))], [sg.T('Interpreter ' + sg.execute_py_get_interpreter(), font='Default 8', pad=(0,0))], @@ -491,7 +494,7 @@ def make_window(): [options_at_bottom]] # --------------------------------- Create Window --------------------------------- - window = sg.Window('PSG Demo & Project Browser', layout, finalize=True, icon=icon, resizable=True, use_default_focus=False, right_click_menu=sg.MENU_RIGHT_CLICK_EDITME_VER_EXIT) + window = sg.Window('PSG Demo & Project Browser', layout, finalize=True, resizable=True, use_default_focus=False, right_click_menu=sg.MENU_RIGHT_CLICK_EDITME_VER_EXIT) window.set_min_size(window.size) window['-DEMO LIST-'].expand(True, True, True) @@ -531,7 +534,8 @@ def main(): background_color='red', text_color='white') except Exception as e: print(f'** Warning Exception parsing version: {version} ** ', f'{e}') - + icon = sg.EMOJI_BASE64_HAPPY_IDEA + sg.user_settings_filename('psgdemos.json') sg.set_options(icon=icon) find_in_file.file_list_dict = None @@ -718,9 +722,8 @@ def main(): -if __name__ == '__main__': - # https://www.vecteezy.com/free-vector/idea-bulb is where I got the icon - icon = b'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr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