Ejemplo n.º 1
0
        def slotBrowseFile(self):
            lvi = self.lvFiles.selectedItem()
            if not lvi:
                return
            dia = FileDialog(self, [str(lvi.text(0)), str(lvi.text(1)), str(lvi.text(2))])
            if dia.exec_loop() == QDialog.Accepted:
                res = dia.getResult()
                lvi.setText(0, res[0])
                lvi.setText(1, res[1])
                lvi.setText(2, res[2])

            self.syncFile()
Ejemplo n.º 2
0
 def slotAddFile(self):
     dia = FileDialog(parent=self)
     if dia.exec_loop() == QDialog.Accepted:
         res = dia.getResult()
         KListViewItem(self.lvFiles, res[0], res[1], res[2])
     self.syncFile()