예제 #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'))