def test_window_should_be_part_of_the_borg_collective(self): window1 = cursesWindow.cursesWindow() window2 = cursesWindow.cursesWindow() window1.test = "test" assert (window2.test == "test")
def setUp(self, mock_popen): super(self.__class__, self).setUp() reader = Mock() reader.read.side_effect = ["1200 1300"] mock_popen.return_value = reader self.test_window = cursesWindow.cursesWindow(pad=Mock(spec=cursesPad))
def __init__(self, window = None): if not window: window = cursesWindow() self.window = window self.screen = [] self.pad = []
def __init__(self, window=None): if not window: window = cursesWindow() self.window = window self.screen = [] self.pad = []
def tryToRecoverTerminal(): try: from cursesUI.cursesWindow import cursesWindow tmp = cursesWindow() tmp.initialize() tmp.close() except: pass
def __init__(self, window = None): if not window: window = cursesWindow() self.window = window self.fetching = 'Fetching...' self.screen = [] self.pad = []
def __init__(self, window=None): if not window: window = cursesWindow() self.window = window self.fetching = 'Fetching...' self.screen = [] self.pad = []
def tryToRecoverTerminal(): try: from cursesUI.cursesWindow import cursesWindow tmp = cursesWindow() tmp.initialize() tmp.close() except: pass
def initApplicationCore(self, config, sabApi, window): if not sabApi: sabApi = api() self.api = sabApi if not window: window = cursesWindow() self.window = window if not config: config = configuration.configuration() self.config = config
def __init__(self, window=None, scrollPresenter=None): if not window: window = cursesWindow() self.window = window if not scrollPresenter: scrollPresenter = sabFlexibleScrollPresenter() self.scrollPresenter = scrollPresenter self.screen = [] self.pad = []
def __init__(self, window = None, scrollPresenter = None): if not window: window = cursesWindow() self.window = window if not scrollPresenter: scrollPresenter = sabFlexibleScrollPresenter() self.scrollPresenter = scrollPresenter self.screen = [] self.pad = []
def __init__(self, window = None): if not window: window = cursesWindow() self.window = window self.item_size = 0 self.max_window_size = int(self.window.size[0]) - 5 self.window_center_point = int((float(self.window.size[0]) - 5) / 2) self.screen = [] self.pad = []
def __init__(self, window = None, scrollPresenter = None): self.displayFileInformation = None if not window: window = cursesWindow() self.window = window if not scrollPresenter: scrollPresenter = sabScrollPresenter() self.scrollPresenter = scrollPresenter self.screen = [] self.pad = []
def __init__(self, window=None): if not window: window = cursesWindow() self.window = window self.item_size = 0 self.max_window_size = int(self.window.size[0]) - 5 self.window_center_point = int((float(self.window.size[0]) - 5) / 2) self.screen = [] self.pad = []
def __init__(self, window=None, scrollPresenter=None): self.displayFileInformation = None if not window: window = cursesWindow() self.window = window if not scrollPresenter: scrollPresenter = sabScrollPresenter() self.scrollPresenter = scrollPresenter self.screen = [] self.pad = []
def __init__(self, window=None, scrollPresenter=None): if not window: window = cursesWindow() self.window = window if not scrollPresenter: scrollPresenter = sabScrollPresenter() self.scrollPresenter = scrollPresenter self.options = ["Download", "Repair", "Unpack", "Delete"] self.screen = [] self.pad = []
def __init__(self, window = None, scrollPresenter = None): if not window: window = cursesWindow() self.window = window if not scrollPresenter: scrollPresenter = sabScrollPresenter() self.scrollPresenter = scrollPresenter self.options = ["Download", "Repair", "Unpack", "Delete"] self.screen = [] self.pad = []