Release 3.12.0 & 1.12.0

This commit is contained in:
MikeTheWatchGuy 2018-10-28 20:01:03 -04:00
parent 42c5499687
commit f60137c4b2
83 changed files with 2030 additions and 1118 deletions

View file

@ -686,7 +686,7 @@ layout = [[sg.Text('Hover mouse to see RGB value, click for white & black text',
# -- Create primary color viewer window by building rows and appending to layout --
row = []
for i, color in enumerate(color_map):
row.append(sg.RButton(color, button_color=('black', color), key=color, tooltip=color_map[color]))
row.append(sg.Button(color, button_color=('black', color), key=color, tooltip=color_map[color]))
if (i+1) % 15 == 0: # every 15 buttons make a new row
layout.append(row)
row = []
@ -700,4 +700,4 @@ while True:
break
# -- Create a secondary window that shows white and black text on chosen color
layout2 =[[sg.DummyButton(event, button_color=('white', event), tooltip=color_map[event]), sg.DummyButton(event, button_color=('black', event), tooltip=color_map[event])] ]
sg.Window('Buttons with white and black text', keep_on_top=True).Layout(layout2).ReadNonBlocking()
sg.Window('Buttons with white and black text', keep_on_top=True).Layout(layout2).Read(timeout=0)