Type of Issue (Enhancement, Error, Bug, Question)
Question
Operating System
WIN10
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions
Python version (sg.sys.version)
3.10.2
PySimpleGUI Version (sg.__version__)
5.0.2.2
GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)
8.6.12
Your Experience In Months or Years (optional)
5+ Years Python programming experience
10+ Years Programming experience overall
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
tkinter
Anything else you think would be helpful?
None
Troubleshooting
These items may solve your problem. Please check those you've done by changing - [ ] to - [X]
Detailed Description
Content of Input and Multiline elements with option do_not_clear=False, cleared when CalendarButton clicked.
IMO, they should not be cleared.
Code To Duplicate
import PySimpleGUI as sg
layout = [
[sg.Input("Input Element", expand_x=True, do_not_clear=False)],
[sg.Multiline("Multiline Element", size=(40, 5), expand_x=True, do_not_clear=False)],
[sg.Input(key='-DATE-', expand_x=True),
sg.CalendarButton("Date")],
[sg.Button("Add task")],
]
window = sg.Window("Title", layout)
while True:
event, values = window.read()
if event == sg.WIN_CLOSED:
break
window.close()
Screenshot, Sketch, or Drawing
In the beginning,

After CalendarButton Date clicked,

Content of Input and Multiline elements cleared !
Type of Issue (Enhancement, Error, Bug, Question)
Question
Operating System
WIN10
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions
Python version (
sg.sys.version)3.10.2
PySimpleGUI Version (
sg.__version__)5.0.2.2
GUI Version (tkinter (
sg.tclversion_detailed), PySide2, WxPython, Remi)8.6.12
Your Experience In Months or Years (optional)
5+ Years Python programming experience
10+ Years Programming experience overall
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
tkinter
Anything else you think would be helpful?
None
Troubleshooting
These items may solve your problem. Please check those you've done by changing - [ ] to - [X]
Detailed Description
Content of Input and Multiline elements with option do_not_clear=False, cleared when CalendarButton clicked.
IMO, they should not be cleared.
Code To Duplicate
Screenshot, Sketch, or Drawing
In the beginning,


After CalendarButton
Dateclicked,Content of Input and Multiline elements cleared !