PySimpleGUI/Demo_Calendar.py
MikeTheWatchGuy 91fef55aed Key error
2018-09-21 23:29:50 -04:00

10 lines
317 B
Python

import PySimpleGUI as sg
layout = [[sg.T('Calendar Test')],
[sg.In('', size=(20,1), key='input')],
[sg.CalendarButton('Choose Date', target='input', key='date')],
[sg.Ok(key=1)]]
form = sg.FlexForm('Calendar', grab_anywhere=False)
b,v = form.LayoutAndRead(layout)
sg.Popup(v['input'])