Gooey
Gooey copied to clipboard
Add menu items that can invoke functions
It would be nice to be able to add a menu item that invokes a function in the client app.
Example:
def openLogFolder():
subprocess.run(["explorer", "C:\\logs"])
@Gooey(menu=[{'name': 'Open', 'items': [{'type': 'Action', 'menuTitle': 'Log Folder...', 'function': openLogFolder}]}])
I can make a pull request as I have already implemented it locally.
It would be nice to be able to add a menu item that invokes a function in the client app.
Example:
def openLogFolder(): subprocess.run(["explorer", "C:\\logs"]) @Gooey(menu=[{'name': 'Open', 'items': [{'type': 'Action', 'menuTitle': 'Log Folder...', 'function': openLogFolder}]}])
I can make a pull request as I have already implemented it locally.
@SteveKlein Maybe this is too late to the party but if you still have this available would you be open to sharing?