From eb309b5895322aa69332d9bd67229982279458e3 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Fri, 21 Sep 2018 22:45:05 -0400 Subject: [PATCH] Turned off no_titlebar, changed target to use new key-style targe --- Demo_Calendar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'])