Skip to content

Instantly share code, notes, and snippets.

View A2va's full-sized avatar

A2va

  • Switzerland
  • 12:10 (UTC +02:00)
View GitHub Profile
@pdashford
pdashford / gh-download.py
Created January 18, 2017 04:01
Python script to download folders from Github repo
"""
Downloads folders from github repo
Requires PyGithub
pip install PyGithub
"""
import os
import sys
import base64
import shutil
@jasonsperske
jasonsperske / q12944362-programmatic-binding-of-accelerators-in-wxpython.py
Created October 18, 2012 17:06
Solution to binding a lambda to an event in wxPython with arguments
import wx
class MyForm(wx.Frame):
#----------------------------------------------------------------------
def __init__(self):
wx.Frame.__init__(self, None, wx.ID_ANY, "Programmatic binding of accelerators in wxPython", size=(450,150))
# Add a panel so it looks the correct on all platforms
panel = wx.Panel(self, wx.ID_ANY)