Skip to content

Instantly share code, notes, and snippets.

@SteveGilham
Created April 14, 2015 20:18
Show Gist options
  • Select an option

  • Save SteveGilham/c356cd100f1be3d18cbe to your computer and use it in GitHub Desktop.

Select an option

Save SteveGilham/c356cd100f1be3d18cbe to your computer and use it in GitHub Desktop.
import clr
clr.AddReference("System.Windows.Forms")
import System.Windows.Forms
_f = None
for _x in dir(System.Windows.Forms):
try:
_f = System.Windows.Forms.__dict__[_x]
if callable(_f):
globals()[_x] = _f
except:
pass
del _x
del _f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment