Skip to content

Instantly share code, notes, and snippets.

View TutorialDoctor's full-sized avatar

RaphaelSmith TutorialDoctor

View GitHub Profile
@jsbain
jsbain / editor_buttons.py
Created January 1, 2018 15:42
editor_buttons.py
import sys,os
# if you place objc_hacks in site packages, this line is not needed
sys.path.append(os.path.expanduser('~/Documents'))
from objc_hacks import apphack
#alternatively, just place apphack.py in site_packages, and import apphack
#little workaround to persistent button locations. needs fixing in apphack
if hasattr(apphack,'__persistent_views'):
__builtins__.__persistent_views=apphack.__persistent_views