[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] C/C++ and Python



Edit your /programs/geany/data/snippets.conf

On Sat, Apr 25, 2009 at 3:49 PM, Knapp <magick.crow@xxxxxxxxx> wrote:
>> Using an editor like Geany, you type
>> "s" then TAB, it inserts "self."
>>
>> --
>> Jake
BTW s tab does not insert self. on my machine. Why not?

My 'python' section is:

[Python]
for="" i in xrange(%cursor%):\n\t
doc="""%cursor%"""\n
elif=elif %cursor%:\n\t
else=else:\n\t%cursor%
if=if %cursor%:\n\t
from=from %cursor% import \n
main=if __name__ == '__main__':\n\t%cursor%
class=class %cursor%(object):\n\n\tdef __init__(self):\n\t\t
def=def %cursor%(self):\n\t
get=def get_%cursor%(self): return self._\n
set=def set_%cursor%(self): self._ = \n
%dot%=self.%cursor%
s=self.%cursor%
try=try %cursor%:\n\t\nexcept ERROR:\n\t
py=#!/usr/bin/env python\n#-*- coding:utf-8 -*-\n%cursor%
while=while %cursor%:\n\t 

--
Jake