def __init__(self, parent): View.__init__(self, parent) self.SetTitle(self.vis_label) frame = QFrame(self) img = appdata.resources_dir + '/images/grid.png' frame.setStyleSheet('background-image: url({0})'.format(img)) self.text = QTextBrowser(frame) self.text.setStyleSheet('border: 0;') self.text.anchorClicked.connect(self.OnLinkClicked) self.text.highlighted[str].connect(self.OnLinkHighlighted) self.text.setOpenLinks(False) self.text.contextMenuEvent = lambda evt: evt.accept() layout = QHBoxLayout(frame) layout.addWidget(self.text) layout.setContentsMargins(0,0,0,0) self.setWidget(frame) self.Refresh()
def __init__(self, parent): View.__init__(self, parent) self.SetTitle(self.vis_label) frame = QFrame(self) img = appdata.resources_dir + '/images/grid.png' frame.setStyleSheet('background-image: url({0})'.format(img)) self.text = QTextBrowser(frame) self.text.setStyleSheet('border: 0;') self.text.anchorClicked.connect(self.OnLinkClicked) self.text.highlighted[str].connect(self.OnLinkHighlighted) self.text.setOpenLinks(False) self.text.contextMenuEvent = lambda evt: evt.accept() layout = QHBoxLayout(frame) layout.addWidget(self.text) layout.setContentsMargins(0, 0, 0, 0) self.setWidget(frame) self.Refresh()
def __init__(self, parent): View.__init__(self, parent) self.UpdateLabel(self.GetLabel()) widget = QWidget(self) layout = QVBoxLayout(widget) self.wnd_tree = Tree(widget) if not self.bound_uri: self.wnd_filter = SearchBox(widget, self.wnd_tree, self.msg_filterdesc, self.Filter, self.Search, self.msg_filteroptions, self.msg_filtermulti) layout.addWidget(self.wnd_filter) self.setFocusProxy(self.wnd_tree) self.wnd_tree.view = self layout.addWidget(self.wnd_tree) layout.setContentsMargins(0,5,0,0) self.destroyed.connect(self.OnDestroy) self.setWidget(widget) self.Seed()
def __init__(self, parent): View.__init__(self, parent) self.UpdateLabel(self.GetLabel()) widget = QWidget(self) layout = QVBoxLayout(widget) self.wnd_tree = Tree(widget) if not self.bound_uri: self.wnd_filter = SearchBox(widget, self.wnd_tree, self.msg_filterdesc, self.Filter, self.Search, self.msg_filteroptions, self.msg_filtermulti) layout.addWidget(self.wnd_filter) self.setFocusProxy(self.wnd_tree) self.wnd_tree.view = self layout.addWidget(self.wnd_tree) layout.setContentsMargins(0, 5, 0, 0) self.destroyed.connect(self.OnDestroy) self.setWidget(widget) self.Seed()