From 317f90b0c51d6d941e4ab2558729b43f500c7f25 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 13 Sep 2018 20:08:35 -0400 Subject: [PATCH] Typos --- Demo_Desktop_Widget_CPU_Utilization.py | 2 +- Demo_Desktop_Widget_Timer.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Demo_Desktop_Widget_CPU_Utilization.py b/Demo_Desktop_Widget_CPU_Utilization.py index 79540a13..8710b157 100644 --- a/Demo_Desktop_Widget_CPU_Utilization.py +++ b/Demo_Desktop_Widget_CPU_Utilization.py @@ -20,7 +20,7 @@ form_rows = [[sg.Text('', size=(8,1), font=('Helvetica', 20),text_color=sg.YELLO [sg.Text('', size=(30, 8), font=('Courier', 10),text_color='white', justification='left', key='processes')], [sg.Exit(button_color=('white', 'firebrick4'), pad=((15,0), 0)), sg.Spin([x+1 for x in range(10)], 1, key='spin')]] -form = sg.FlexForm('Running Timer', no_titlebar=True, auto_size_buttons=False, keep_on_top=True, grab_anywhere=True) +form = sg.FlexForm('CPU Utilization', no_titlebar=True, auto_size_buttons=False, keep_on_top=True, grab_anywhere=True) form.Layout(form_rows) # ---------------- main loop ---------------- diff --git a/Demo_Desktop_Widget_Timer.py b/Demo_Desktop_Widget_Timer.py index 76040c50..c0221999 100644 --- a/Demo_Desktop_Widget_Timer.py +++ b/Demo_Desktop_Widget_Timer.py @@ -16,17 +16,16 @@ import time # ---------------- Create Form ---------------- sg.ChangeLookAndFeel('Black') sg.SetOptions(element_padding=(0, 0)) -# Make a form, but don't use context manager -# Create the form layout + form_rows = [[sg.Text('')], [sg.Text('', size=(8, 2), font=('Helvetica', 20), justification='center', key='text')], [sg.ReadFormButton('Pause', key='button', button_color=('white', '#001480')), sg.ReadFormButton('Reset', button_color=('white', '#007339')), sg.Exit(button_color=('white', 'firebrick4'))]] -# Layout the rows of the form and perform a read. Indicate the form is non-blocking! + form = sg.FlexForm('Running Timer', no_titlebar=True, auto_size_buttons=False, keep_on_top=True, grab_anywhere=True) form.Layout(form_rows) -# + # ---------------- main loop ---------------- current_time = 0 paused = False