From de8e29f1cf1ef8273202999bab4bc01b558254c9 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Thu, 18 Jun 2020 11:17:12 -0400 Subject: [PATCH] Removed very old template because it used the CloseButton that's not something suggested to use now. --- DemoPrograms/Demo_Template.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 DemoPrograms/Demo_Template.py diff --git a/DemoPrograms/Demo_Template.py b/DemoPrograms/Demo_Template.py deleted file mode 100644 index ffa551e1..00000000 --- a/DemoPrograms/Demo_Template.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python -import PySimpleGUI as sg - -# -# Choose one of these are your starting point. Copy, paste, have fun -# - - -# ---------------------------------# -# DESIGN PATTERN 1 - Simple Window # -# ---------------------------------# -layout = [[ sg.Text('My layout') ], - [ sg.CloseButton('Next Window')]] - -window = sg.Window('My window', layout) -event, values = window.read() - - -# --------------------------------------------------# -# DESIGN PATTERN 2 - Persistent Window (stays open) # -# --------------------------------------------------# - -layout = [[ sg.Text('My Window') ], - [ sg.Button('Read The Window')]] - -window = sg.Window('My Window Title', layout) - -while True: # Event Loop - event, values = window.read() - if event == sg.WIN_CLOSED: # if window closed with X - break - print(event, values) - -window.close()