Merge pull request #1704 from PySimpleGUI/Dev-latest
Set the button activebackground color in the Update method. Already d…
This commit is contained in:
commit
1a66239a2d
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
version = __version__ = "4.1.0.10 Unreleased - Anniversary Edition"
|
version = __version__ = "4.1.0.12 Unreleased - Anniversary Edition"
|
||||||
|
|
||||||
|
|
||||||
# 888888ba .d88888b oo dP .88888. dP dP dP
|
# 888888ba .d88888b oo dP .88888. dP dP dP
|
||||||
|
@ -2258,7 +2258,7 @@ class Button(Element):
|
||||||
if sys.platform == 'darwin' and button_color != (None, None):
|
if sys.platform == 'darwin' and button_color != (None, None):
|
||||||
print('Button.Update *** WARNING - Button colors are not supported on the Mac***')
|
print('Button.Update *** WARNING - Button colors are not supported on the Mac***')
|
||||||
if button_color != (None, None):
|
if button_color != (None, None):
|
||||||
self.TKButton.config(foreground=button_color[0], background=button_color[1])
|
self.TKButton.config(foreground=button_color[0], background=button_color[1], activebackground=button_color[1])
|
||||||
self.ButtonColor = button_color
|
self.ButtonColor = button_color
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
|
@ -10909,6 +10909,7 @@ def main():
|
||||||
# transparent_color= '#9FB8AD',
|
# transparent_color= '#9FB8AD',
|
||||||
resizable=True,
|
resizable=True,
|
||||||
debugger_enabled=False,
|
debugger_enabled=False,
|
||||||
|
keep_on_top=True,
|
||||||
# icon=r'X:\VMWare Virtual Machines\SHARED FOLDER\kingb.ico'
|
# icon=r'X:\VMWare Virtual Machines\SHARED FOLDER\kingb.ico'
|
||||||
).Finalize()
|
).Finalize()
|
||||||
graph_elem.DrawCircle((200, 200), 50, 'blue')
|
graph_elem.DrawCircle((200, 200), 50, 'blue')
|
||||||
|
@ -10930,8 +10931,7 @@ def main():
|
||||||
i += 1
|
i += 1
|
||||||
if event == 'Button':
|
if event == 'Button':
|
||||||
window.Element('_TEXT1_').SetTooltip('NEW TEXT')
|
window.Element('_TEXT1_').SetTooltip('NEW TEXT')
|
||||||
# window.SetTransparentColor('#9FB8AD')
|
window.SetTransparentColor('#9FB8AD')
|
||||||
# window.Maximize()
|
|
||||||
window.Element('_MENU_').Update(visible=True)
|
window.Element('_MENU_').Update(visible=True)
|
||||||
elif event == 'Normal':
|
elif event == 'Normal':
|
||||||
window.Normal()
|
window.Normal()
|
||||||
|
@ -10940,7 +10940,6 @@ def main():
|
||||||
show_debugger_popout_window()
|
show_debugger_popout_window()
|
||||||
elif event == 'Launch Debugger':
|
elif event == 'Launch Debugger':
|
||||||
show_debugger_window()
|
show_debugger_window()
|
||||||
# TimerStop()
|
|
||||||
window.Close()
|
window.Close()
|
||||||
|
|
||||||
# -------------------------------- ENTRY POINT IF RUN STANDALONE -------------------------------- #
|
# -------------------------------- ENTRY POINT IF RUN STANDALONE -------------------------------- #
|
||||||
|
|
Loading…
Reference in New Issue