Merge pull request #301 from MikeTheWatchGuy/Dev-latest

Turned off no_titlebar, changed target to use new key-style target
This commit is contained in:
MikeTheWatchGuy 2018-09-21 22:45:58 -04:00 committed by GitHub
commit 7a9299e8ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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'])