From 28f43bd0202adafc7ab6604a393395b8aefb7b60 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 29 Aug 2019 16:44:23 -0400 Subject: [PATCH] Added tooltip to main screen. Fixed importing WRONG PSG... was importing Qt when should have been plain PSG. --- DemoPrograms/Demo_Color_Names.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_Color_Names.py b/DemoPrograms/Demo_Color_Names.py index 3142ee60..aa080f30 100644 --- a/DemoPrograms/Demo_Color_Names.py +++ b/DemoPrograms/Demo_Color_Names.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys if sys.version_info[0] >= 3: - import PySimpleGUIQt as sg + import PySimpleGUI as sg else: import PySimpleGUI27 as sg @@ -691,7 +691,7 @@ for rows in range(40): for i in range(12): try: color = color_list[rows+40*i] - row.append(sg.Button(color, button_color=('black', color), key=color)) + row.append(sg.Button(color, button_color=('black', color), key=color, tooltip=color_map[color])) except: pass layout.append(row)