Ejemplo n.º 1
0
 def applyChanges(self):
     """Displays changes and commits them.
     """
     if os.geteuid() != 0:
         self.notroot = notRoot(self)
         QMessageBox.open(self.notroot)
         return
     self.handleChanges()
     t = Transaction()
     changes = t.changeList(self.installList, self.upgradeList, self.removeList)
     self.cWin = ChangeWin(self)
     QObject.connect(self.cWin, SIGNAL('accepted()'), self.commitChanges)
     QObject.connect(self.cWin, SIGNAL('rejected()'), self.noChanges)
     self.cWin.setChanges(changes)
     self.cWin.show()