Merge pull request #1896 from PySimpleGUI/Dev-latest
Added tooltip to main screen. Fixed importing WRONG PSG... was impor…
This commit is contained in:
commit
472895e894
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import sys
|
import sys
|
||||||
if sys.version_info[0] >= 3:
|
if sys.version_info[0] >= 3:
|
||||||
import PySimpleGUIQt as sg
|
import PySimpleGUI as sg
|
||||||
else:
|
else:
|
||||||
import PySimpleGUI27 as sg
|
import PySimpleGUI27 as sg
|
||||||
|
|
||||||
|
@ -691,7 +691,7 @@ for rows in range(40):
|
||||||
for i in range(12):
|
for i in range(12):
|
||||||
try:
|
try:
|
||||||
color = color_list[rows+40*i]
|
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:
|
except:
|
||||||
pass
|
pass
|
||||||
layout.append(row)
|
layout.append(row)
|
||||||
|
|
Loading…
Reference in New Issue