Exemplo n.º 1
0
 def clearChanges(self):
     """Clears all changes that have not been commited.
     """
     self.ui.queryList.clear()
     self.installList.clear()
     self.removeList.clear()
     self.upgradeList.clear()
     t = Transaction()
     self.installed = t.getInstalled()
     self.upgrades = {}
     self.handleChanges()
Exemplo n.º 2
0
    def __init__(self, app):
        """Initialize the window.
        :param app: Parent Qt application.
        """
        QMainWindow.__init__(self)
        self.app = app

        self.ui=Ui_MainWindow()
        self.ui.setupUi(self)
        self.makeConnections()

        self.installList = {}
        self.upgradeList = {}
        self.removeList = {}

        self.changeFont = QFont()
        self.changeFont.setBold(True)
        self.Font = QFont()
        self.Font.setBold(False)

        t = Transaction()
        self.installed = t.getInstalled()
        self.upgrades = {}