示例#1
0
文件: app.py 项目: allanderek/kaa
 def __init__(self, config):
     self.config = config
     self.clipboard = clipboard.select_clipboard()
     self.colors = None
     self._idleprocs = None
     self.lastcommands = ()
     self.focus = None
     self._quit = False
     self.theme = self.DEFAULT_THEME
     self.last_dir = '.'
     self._input_readers = []
     self._tasks = []
示例#2
0
文件: app.py 项目: kaaedit/kaa
    def __init__(self, config):
        self.config = config
        self.clipboard = clipboard.select_clipboard()
        self.colors = None
        self._idleprocs = None
        self.lastcommands = ()
        self.focus = None
        self._quit = False
        self.theme = self.DEFAULT_THEME
        self.last_dir = '.'
        self._input_readers = []

        self._lock = threading.RLock()
        self._tasks = []

        self.commands = {}
        self.is_availables = {}

        self.sigwinch_rfd, self.sigwinch_wfd = os.pipe()
        signal.signal(signal.SIGWINCH,
                      lambda *args: os.write(self.sigwinch_wfd, b'0'))
示例#3
0
文件: app.py 项目: smorin/kaa
    def __init__(self, config):
        self.config = config
        self.clipboard = clipboard.select_clipboard()
        self.colors = None
        self._idleprocs = None
        self.lastcommands = ()
        self.focus = None
        self._quit = False
        self.theme = self.DEFAULT_THEME
        self.last_dir = '.'
        self._input_readers = []

        self._lock = threading.RLock()
        self._tasks = []

        self.commands = {}
        self.is_availables = {}

        self.sigwinch_rfd, self.sigwinch_wfd = os.pipe()
        signal.signal(signal.SIGWINCH,
                      lambda *args: os.write(self.sigwinch_wfd, b'0'))