Added tooltip to main screen. Fixed importing WRONG PSG... was importing Qt when should have been plain PSG.

This commit is contained in:
MikeTheWatchGuy 2019-08-29 16:44:23 -04:00
parent 9d9aa5e2d8
commit 28f43bd020
1 changed files with 2 additions and 2 deletions

View File

@ -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)