def _initUI(self): self.splitter = QtWidgets.QSplitter() self.splitter.setHandleWidth(1) self.filters_tree_view = FiltersTreeView(self.splitter) self.tasks_view = TasksView(self.splitter) colorSchemName = QtCore.QSettings().value("color_schem", "") tFile = "css/{}.css".format(colorSchemName) cssPath = getResourcePath(tFile) if os.path.isfile(cssPath): css = open(cssPath, 'r', encoding='utf-8').read() self.setStyleSheet(css) self.setCentralWidget(self.splitter) self.resize(800, 400) self.splitter.setSizes([250, 550]) self.setWindowIcon(QtGui.QIcon(self.style + '/resources/qtodotxt.png')) self.setTabOrder(self.tasks_view.tasks_search_view, self.tasks_view.tasks_list_view) self.setTabOrder(self.tasks_view.tasks_list_view, self.filters_tree_view)
def _initUI(self): self.splitter = QtWidgets.QSplitter() self.splitter.setHandleWidth(1) cssPath = getResourcePath("css/default.css") css = open(cssPath, 'r', encoding='utf-8').read() self.setStyleSheet(css) self.filters_tree_view = FiltersTreeView(self.splitter) self.tasks_view = TasksView(self.splitter) self.setCentralWidget(self.splitter) self.resize(800, 400) self.splitter.setSizes([250, 550]) self.setWindowIcon(getIcon('qtodotxt.png'))
def _initUI(self): self.splitter = QtWidgets.QSplitter() self.splitter.setHandleWidth(1) self.filters_tree_view = FiltersTreeView(self.splitter) self.tasks_view = TasksView(self.splitter) colorSchemName = QtCore.QSettings().value("color_schem", "") tFile = os.path.join("css", "{}.css".format(colorSchemName)) cssPath = getResourcePath(tFile) if os.path.isfile(cssPath): css = open(cssPath, "r", encoding="utf-8").read() self.setStyleSheet(css) self.setCentralWidget(self.splitter) self.resize(800, 400) self.splitter.setSizes([250, 550]) self.setWindowIcon(QtGui.QIcon(self.style + "/resources/qtodotxt.png")) self.setTabOrder(self.tasks_view.tasks_search_view, self.tasks_view.tasks_list_view) self.setTabOrder(self.tasks_view.tasks_list_view, self.filters_tree_view)