def slotBrowseConflict(self): lvi = self.lvConflicts.selectedItem() if not lvi: return dia = DependencyDialog( (str(lvi.text(0)), str(lvi.text(1))), parent=self, title="Conflicts", secondLabel="Package:" ) if dia.exec_loop() == QDialog.Accepted: cond, dep = dia.getResult() lvi.setText(0, cond) lvi.setText(1, dep)
def slotBrowseRuntimeDep(self): lvi = self.lvRuntimeDep.selectedItem() if not lvi: return dia = DependencyDialog((str(lvi.text(0)), str(lvi.text(1))), parent=self, title="Runtime Dependencies") if dia.exec_loop() == QDialog.Accepted: cond, dep = dia.getResult() lvi.setText(0, cond) lvi.setText(1, dep) self.syncRuntimeDep()
def slotAddConflict(self): dia = DependencyDialog(parent=self, title="Conflicts", secondLabel="Package:") if dia.exec_loop() == QDialog.Accepted: cond, dep = dia.getResult() KListViewItem(self.lvConflicts, cond, dep)
def slotAddRuntimeDep(self): dia = DependencyDialog(parent=self, title="Runtime Dependencies") if dia.exec_loop() == QDialog.Accepted: cond, dep = dia.getResult() KListViewItem(self.lvRuntimeDep, cond, dep) self.syncRuntimeDep()