def __init__(self, pkmeter, parent=None): with open(self.TEMPLATE) as tmpl: template = ElementTree.fromstring(tmpl.read()) PKWidget.__init__(self, template, self, parent) self.pkmeter = pkmeter # Save reference to pkmeter self._init_window() # Init ui window elements self.values = self.load() # Active configuration values self.listitems = [] # List of items in the sidebar self.datatable = self._init_datatable() # Init reusable data table self.pconfigs = self._init_pconfigs() # Reference to each plugin config self.setWindowFlags(Qt.Dialog) self.setWindowModality(Qt.ApplicationModal)
def __init__(self, pkmeter, parent=None): with open(self.TEMPLATE) as tmpl: template = ElementTree.fromstring(tmpl.read()) PKWidget.__init__(self, template, self, parent) self.pkmeter = pkmeter # Save reference to pkmeter self._init_window() # Init ui window elements self.values = self.load() # Active configuration values self.listitems = [] # List of items in the sidebar self.datatable = self._init_datatable() # Init reusable data table self.pconfigs = self._init_pconfigs( ) # Reference to each plugin config self.setWindowFlags(Qt.Dialog) self.setWindowModality(Qt.ApplicationModal)
def __init__(self, parent=None): with open(self.TEMPLATE) as tmpl: template = ElementTree.fromstring(tmpl.read()) PKWidget.__init__(self, template, self, parent) self.setWindowTitle('About PKMeter') self.setWindowFlags(Qt.Dialog) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QtGui.QIcon(QtGui.QPixmap('img:logo.png'))) self.layout().setContentsMargins(0,0,0,0) self.layout().setSpacing(0) self._init_stylesheet() self.manifest.version.setText('Version %s' % VERSION) self.manifest.qt.setText('QT v%s, PyQT v%s' % (QT_VERSION_STR, PYQT_VERSION_STR))
def __init__(self, parent=None): with open(self.TEMPLATE) as tmpl: template = ElementTree.fromstring(tmpl.read()) PKWidget.__init__(self, template, self, parent) self.setWindowTitle('About PKMeter') self.setWindowFlags(Qt.Dialog) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QtGui.QIcon(QtGui.QPixmap('img:logo.png'))) self.layout().setContentsMargins(0, 0, 0, 0) self.layout().setSpacing(0) self._init_stylesheet() self.manifest.version.setText('Version %s' % VERSION) self.manifest.qt.setText('QT v%s, PyQT v%s' % (QT_VERSION_STR, PYQT_VERSION_STR))