Beispiel #1
0
 def slotFile(self):
     self.realLoc = KFileDialog.getOpenFileName(QString.null, QString.null,
                                                self,
                                                i18n("Select COMAR Script"))
     if not self.realLoc or str(self.realLoc).strip() == "":
         return
     self.leFile.setText(os.path.split(str(self.realLoc))[1])
Beispiel #2
0
Datei: tab.py Projekt: pipacs/etc
 def slotOpen(self, id = -1):
     fileName = KFileDialog.getOpenFileName(self.lastDir, "*", self, 
         str(i18n("Open Log File")))
     print fileName
     if not fileName.isEmpty():
         self.lastDir = os.path.dirname(str(fileName))
         self.monitor(str(fileName))
Beispiel #3
0
 def slotOpen(self, id=-1):
     fileName = KFileDialog.getOpenFileName(self.lastDir, "*", self,
                                            str(i18n("Open Log File")))
     print fileName
     if not fileName.isEmpty():
         self.lastDir = os.path.dirname(str(fileName))
         self.monitor(str(fileName))
Beispiel #4
0
 def onOpen(self, id = -1):
     """Open file for monitoring."""
     fileName = KFileDialog.getOpenFileName(self.lastDir, "*", self, 
         str(i18n("Open Log File")))
     if not fileName.isEmpty():
         fileName = str(fileName)
         self.lastDir = os.path.dirname(fileName)
         self.monitor(fileName)
Beispiel #5
0
 def getPrivateKey(self, parent=None):
     i = KFileDialog.getOpenFileName("", i18n("*|Certificates"), parent, i18n("Select Private Key File"))
     if i:
         self.auth_private_key = i
         self.auth_private_key_but.setText(self.auth_private_key.section('/', -1))
Beispiel #6
0
 def getClientCert(self, parent=None):
     i = KFileDialog.getOpenFileName("", i18n("*|Certificates"), parent, i18n("Select Client Certificate File"))
     if i:
         self.auth_client_cert = i
         self.auth_client_cert_but.setText(self.auth_client_cert.section('/', -1))
 def slotFile(self):
     self.realLoc = KFileDialog.getOpenFileName(QString.null, QString.null, self, i18n("Select Additional File"))
     if not self.realLoc or str(self.realLoc).strip() == "":
         return
     self.leFile.setText(os.path.split(str(self.realLoc))[1])