1
0
Fork 0
This repository has been archived on 2019-12-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
arduinisten/arduino-0018-windows/hardware/tools/avr/pn/clips/pythonscheme.clips

18 lines
930 B
Text
Raw Normal View History

2010-03-30 21:53:44 +02:00
<clips name="Python" scheme="python">
<clip name="class" shortcut="cl">class |:</clip><clip name="method" shortcut="m">def |():</clip><clip name="xrange" shortcut="xr">for x in xrange(|):</clip><clip name="PyPN Script File" shortcut="pnscriptfile">###############################################################################
## Script description
## By: your name here
import pn
import scintilla
from pypn.decorators import script
@script()
def |():
""" What this does """
pass</clip><clip name="PyPN Script Method" shortcut="pnscript">@script()
def |():
""" What this does """
pass</clip><clip name="PyPN Editor" shortcut="pneditor">editor = scintilla.Scintilla(pn.CurrentDoc())</clip><clip name="PyPN Undo Block" shortcut="undoblock">editor.BeginUndoAction()
|
editor.EndUndoAction()</clip><clip name="PyPN Selected Text" shortcut="pnsel">editor.GetText(editor.SelectionStart, editor.SelectionEnd)</clip></clips>