Closed PySimpleGUI closed 1 year ago
Hey hey! Very cool lines.
Thank you for taking the time to make these suggestions! I appreciate the feedback and I'm glad you found the screenshots helpful. I just pushed the updated code to the repository.
Please let me know if you have ideas for the same key bound to two buttons in one window without calling Tkinter.
Please let me know if you have ideas for the same key bound to two buttons in one window without calling Tkinter.
If you've not opened an issue in the PySimpleGUI GitHub about this then please do. I'm not sure exactly what you mean by the same key bound to two buttons. Too many definitions for "key".
This was another change that I made... simplified by taking out size, key, events enabled, etc. Looked like a feature that wasn't completed.
[sg.Text("OpenAIGUI", expand_x=True, justification="center", font=("Helvetica", 13), relief=sg.RELIEF_RIDGE)],
I also added my normal editing / version info featute by adding this standard right click menu:
window = sg.Window('OpenAI GUI', layout, resizable=True, right_click_menu=sg.MENU_RIGHT_CLICK_EDITME_VER_EXIT)
And then these 4 lines that I copy to all of my projects' event loop.
if event == 'Edit Me':
sg.execute_editor(__file__)
elif event == 'Version':
sg.popup_scrolled(__file__, sg.get_versions(), location=window.current_location(), keep_on_top=True, non_blocking=True)
This enables me to quickly make changes to programs I'm working on from time to time...
Right-click, choose "Edit Me" and I'm editing the program in PyCharm without having to remember where the program is located on my system.
Hi!
I really
what you've made. Really like that you included screenshots.
I quickly made a few tweaks that you may find helpful. for this and other PySimpleGUI programs. They include:
Pane
element on the bottom twoMultiline
so that you can adjust how much of the bottom one is visibleMultiline
will automatically click theAnswer
button for youHere's an example session with this GUI
This is the code.