branch : pmacs2
This commit is contained in:
moculus 2007-11-05 06:00:37 +00:00
parent a003addde9
commit 38697b8796
1 changed files with 28 additions and 0 deletions

View File

@ -105,6 +105,34 @@ class Method:
def _execute(self, w, **vargs):
raise Exception, "Unimplemented Method: %s %r" % (self.name, vargs)
class AboutPmacs(Method):
'''print some information about pmacs'''
data = '''
================================================================================
************ ********** ****** ****** **** ******** *********
************** ****************** ************* ********** ***********
******* ***** ****** ***** **** **** ****** **** **** ***** ****
*** *** *** *** *** **** **** **** *******
*** *** *** *** *** **** **** **** *******
***** ***** ***** ***** **** **** ****** **** **** **** *****
************ ***** ***** **** ************* ********** ***********
********** ***** ***** **** ****** **** ******** *********
***
*** a python-based text editor by Erik Osheim, (c) 2005-2007
***** available to you under the GNU General Public License v2
*****
***** to see all commands type: C-c M-h (show-bindings-buffer)
================================================================================
'''
def _execute(self, w, **vargs):
w.application.data_buffer("*About*", self.data, switch_to=True)
class GotoChar(Method):
'''Jump to the specified character'''
args = [Argument("charno", type=type(0), prompt="Goto char: ")]