Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iamutkarshtiwari/8a6a23fa19493eecddd017faac0ec2fa to your computer and use it in GitHub Desktop.
Save iamutkarshtiwari/8a6a23fa19493eecddd017faac0ec2fa to your computer and use it in GitHub Desktop.
from jarabe.screenshotpanel.gui import ScreenshotPanel
BOUND_KEYS = ['<alt>1', 'Print']
def handle_key_press(key):
#destroy(ScreenshotPanel)
if panel is None:
panel = ScreenshotPanel()
else:
panel.close()
panel = ScreenshotPanel()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment