From f7f3fc915afc3a07d390aa83920681e74e901934 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 6 Apr 2020 14:59:23 -0400 Subject: [PATCH] Made import use PySimpleGUI instead of web, removed the shortcut from menus for easier reading --- DemoPrograms/Demo_OpenCV_4_Line_Program.py | 2 +- DemoPrograms/Demo_Settings_Save_Load.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_OpenCV_4_Line_Program.py b/DemoPrograms/Demo_OpenCV_4_Line_Program.py index a7788db0..6430fb06 100644 --- a/DemoPrograms/Demo_OpenCV_4_Line_Program.py +++ b/DemoPrograms/Demo_OpenCV_4_Line_Program.py @@ -1,4 +1,4 @@ -import cv2, PySimpleGUIWeb as sg +import cv2, PySimpleGUI as sg window, cap = sg.Window('Demo Application - OpenCV Integration', [[sg.Image(filename='', key='image')], ], location=(800, 400)), cv2.VideoCapture(0) while window(timeout=20)[0] is not None: window['image'](data=cv2.imencode('.png', cap.read()[1])[1].tobytes()) diff --git a/DemoPrograms/Demo_Settings_Save_Load.py b/DemoPrograms/Demo_Settings_Save_Load.py index a3fc54a5..f3923f93 100644 --- a/DemoPrograms/Demo_Settings_Save_Load.py +++ b/DemoPrograms/Demo_Settings_Save_Load.py @@ -71,7 +71,8 @@ def create_settings_window(settings): def create_main_window(settings): sg.theme(settings['theme']) - layout = [[sg.Menu([['&File', []], ['&Edit', ['&Settings'], ],['&Help', '&About...'],])], + layout = [ + [sg.Menu([['File', ['Open']], ['Edit', ['Settings'], ],['Help', 'About...'],])], [sg.T('This is my main application')], [sg.T('Add your primary window stuff in here')], [sg.B('Ok'), sg.B('Exit'), sg.B('Change Settings')]]