diff --git a/Demo_Calendar.py b/Demo_Calendar.py index 12b48d46..612757d6 100644 --- a/Demo_Calendar.py +++ b/Demo_Calendar.py @@ -1,10 +1,10 @@ import PySimpleGUI as sg layout = [[sg.T('Calendar Test')], - [sg.In('', size=(20,1))], - [sg.CalendarButton('Choose Date', target=(1,0), key='date')], + [sg.In('', size=(20,1), key='input')], + [sg.CalendarButton('Choose Date', target='input', key='date')], [sg.Ok(key=1)]] -form = sg.FlexForm('Calendar', no_titlebar=True) +form = sg.FlexForm('Calendar', grab_anywhere=False) b,v = form.LayoutAndRead(layout) sg.Popup(v['date'])