~iferca/yape/trunk

« back to all changes in this revision

Viewing changes to src/yape/addins/commandshell.py

  • Committer: Israel Fernández Cabrera
  • Date: 2008-10-03 21:12:17 UTC
  • Revision ID: iferca@gmail.com-20081003211217-uu1df2ucq3wd67nd
YaPe project moved to the new YaPe project structure. Old one will work fine but it was not suitable for the next development phases

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: UTF-8 -*-
 
3
 
 
4
__license__ = "GPL V.2 or (at your option) any later version"
 
5
__copyright__ = "2007, Israel Fernández Cabrera"
 
6
 
 
7
from addinbase import AddinBase
 
8
from terminal import TerminalWidget
 
9
 
 
10
class CommandTerminal(AddinBase, TerminalWidget):
 
11
    """CommandTerminal(orientation)
 
12
    where: orientation is one of "Vertical"/"Horizontal"
 
13
    
 
14
    Simple shell for a standard local command line terminal. Inherits its capabilities
 
15
    as a terminal from yape.terminal.TerminalWidget
 
16
    """
 
17
    def __init__(self, orientation):
 
18
        super(CommandTerminal, self).__init__()
 
19
 
 
20
    @classmethod
 
21
    def createNewInstance(cls, orientation):
 
22
        return CommandTerminal(orientation)
 
23
 
 
24
    @classmethod
 
25
    def description(cls):
 
26
        return "Command Shell"
 
27
 
 
28
def getAddin():
 
29
    return CommandTerminal