예제 #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])
예제 #2
0
파일: tab.py 프로젝트: 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))
예제 #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))
예제 #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)
예제 #5
0
파일: connection.py 프로젝트: Tayyib/uludag
 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))
예제 #6
0
파일: connection.py 프로젝트: Tayyib/uludag
 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])