From 99f28f192caab48a732eb8203a909e93f307d2b7 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sat, 27 Oct 2018 01:51:16 -0400 Subject: [PATCH] Write and read graphs were swapped --- Demo_Desktop_Widget_psutil_Dashboard.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Demo_Desktop_Widget_psutil_Dashboard.py b/Demo_Desktop_Widget_psutil_Dashboard.py index 134551be..5a8157f9 100644 --- a/Demo_Desktop_Widget_psutil_Dashboard.py +++ b/Demo_Desktop_Widget_psutil_Dashboard.py @@ -1,6 +1,5 @@ #!/usr/bin/env python import sys -import sys if sys.version_info[0] >= 3: import PySimpleGUI as sg else: @@ -70,9 +69,9 @@ def main(): sg.Column([[Txt('Net In', key='_NET_IN_'),], [sg.Graph((GRAPH_WIDTH, GRAPH_HEIGHT), (0, 0), (GRAPH_WIDTH, 100), background_color='black', key='_GRAPH_IN_')]], pad=(0, 2))], [sg.Column([[Txt('Disk Read', key='_DISK_READ_')], - [sg.Graph((GRAPH_WIDTH, GRAPH_HEIGHT), (0, 0), (GRAPH_WIDTH, 100), background_color='black', key='_GRAPH_DISK_WRITE_')]], pad=(2,2)), + [sg.Graph((GRAPH_WIDTH, GRAPH_HEIGHT), (0, 0), (GRAPH_WIDTH, 100), background_color='black', key='_GRAPH_DISK_READ_')]], pad=(2,2)), sg.Column([[Txt('Disk Write', key='_DISK_WRITE_')], - [sg.Graph((GRAPH_WIDTH, GRAPH_HEIGHT), (0, 0), (GRAPH_WIDTH, GRAPH_HEIGHT), background_color='black', key='_GRAPH_DISK_READ_')]], pad=(0, 2))], + [sg.Graph((GRAPH_WIDTH, GRAPH_HEIGHT), (0, 0), (GRAPH_WIDTH, GRAPH_HEIGHT), background_color='black', key='_GRAPH_DISK_WRITE_')]], pad=(0, 2))], [sg.Column([[Txt('CPU Usage', key='_CPU_USAGE_')], [sg.Graph((GRAPH_WIDTH, GRAPH_HEIGHT), (0, 0), (GRAPH_WIDTH, 100), background_color='black', key='_GRAPH_CPU_USAGE_')]], pad=(2,2)), sg.Column([[Txt('Memory Usage', key='_MEM_USAGE_')], [sg.Graph((GRAPH_WIDTH, GRAPH_HEIGHT), (0, 0), (GRAPH_WIDTH, 100), background_color='black', key='_GRAPH_MEM_USAGE_')]], pad=(2, 2))]]