home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / gedit-2 / plugins / snippets / python.xml < prev    next >
Encoding:
Extensible Markup Language  |  2006-08-27  |  1.3 KB  |  46 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <snippets language="Python">
  3.   <snippet id="def">
  4.     <text><![CDATA[def ${1:fname}(${2:self}):
  5.     ${3:pass}]]></text>
  6.     <description>New Function</description>
  7.     <tag>def</tag>
  8.   </snippet>
  9.   <snippet id="get">
  10.     <text><![CDATA[def get$1(self): return self._$1]]></text>
  11.     <description>New Get Method</description>
  12.     <tag>get</tag>
  13.   </snippet>
  14.   <snippet id="class">
  15.     <text><![CDATA[class ${1:ClassName} (${2:object}):
  16.  
  17.     def __init__(self${3:,})
  18.         ${4:pass}
  19.  
  20.  
  21. $0]]></text>
  22.     <description>New Class</description>
  23.     <tag>class</tag>
  24.   </snippet>
  25.   <snippet id="insert">
  26.     <text><![CDATA["${1:$GEDIT_SELECTED_TEXT}"]]></text>
  27.     <accelerator><![CDATA[<Control>2]]></accelerator>
  28.     <description>Inside String: Insert "ΓǪ"</description>
  29.   </snippet>
  30.   <snippet id="insert-1">
  31.     <text><![CDATA['${1:$GEDIT_SELECTED_TEXT}']]></text>
  32.     <accelerator><![CDATA[<Control>apostrophe]]></accelerator>
  33.     <description>Inside String: Insert 'ΓǪ'</description>
  34.   </snippet>
  35.   <snippet id=".">
  36.     <text><![CDATA[self.]]></text>
  37.     <description>self</description>
  38.     <tag>.</tag>
  39.   </snippet>
  40.   <snippet id="set">
  41.     <text><![CDATA[def set$1(self, ${2:newValue}): self._$1 = $2]]></text>
  42.     <description>New Set Method</description>
  43.     <tag>set</tag>
  44.   </snippet>
  45. </snippets>
  46.