-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
QuestionFurther information is requestedFurther information is requested
Description
Type of Issues (Enhancement, Error, Bug, Question)
Lubuntu 20.04
3.8.5 (default, Jan 27 2021, 15:41:15)
PySimpleGUI Port and Version
Port = tkinter,
PySimpleGUI' from '/home/june/.local/lib/python3.8/site-packages/PySimpleGUI/init.py'>
4.34.0 Released 18-Jan-2021
8.6.10
3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0]
Your Experience Levels In Months or Years
3 mths_ Python programming experience
_20+ years Programming experience overall
_yes Have used another Python GUI Framework (tkinter, Qt, etc) previously (yes/no is fine)?
You have completed these steps:
- [y ] Read instructions on how to file an Issue
- [ y] Searched through main docs http://www.PySimpleGUI.org for your problem
- [ y] Searched through the readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
- [ y] Looked for Demo Programs that are similar to your goal http://www.PySimpleGUI.com
- [ y] Note that there are also Demo Programs under each port on GitHub
- [ y] Run your program outside of your debugger (from a command line)
- [ y] Searched through Issues (open and closed) to see if already reported
- [ y] Try again by upgrading your PySimpleGUI.py file to use the current one on GitHub. Your problem may have already been fixed but is not yet on PyPI.
I have coded button shortcuts in Tk via bind and underline in Tk but I can't find how to do it in sg? - I have simulated it in Python code but I would like the Ampersand(&) feature(& precedes the hot key, which is bound to Alt) as implemented in the Qt port(VB also does this).
Code To Duplicate
#
# Tkinter code:
# top.title("Kookie")
# top.bind("<Alt_L>""<k>", lambda event: kookie_click())
# top.bind("<Alt_L>""<x>", lambda event: exit_click())
# top.configure(background="darkblue")
# .
# .
# .
# self.kookie.configure(command=kookie_click)
# self.kookie.configure(text='Kookie')
# self.kookie.configure(underline="0") # underlines 'k'
# self.kookie = tk.Button(top)
# .
# .
# .PySimpleGUI
Metadata
Metadata
Assignees
Labels
QuestionFurther information is requestedFurther information is requested