當前位置: 首頁>>代碼示例>>Python>>正文


Python QMessageBox.about方法代碼示例

本文整理匯總了Python中PyQt5.Qt.QMessageBox.about方法的典型用法代碼示例。如果您正苦於以下問題:Python QMessageBox.about方法的具體用法?Python QMessageBox.about怎麽用?Python QMessageBox.about使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PyQt5.Qt.QMessageBox的用法示例。


在下文中一共展示了QMessageBox.about方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: about

# 需要導入模塊: from PyQt5.Qt import QMessageBox [as 別名]
# 或者: from PyQt5.Qt.QMessageBox import about [as 別名]
 def about(self):
     # Get the about text from a file inside the plugin zip file
     # The get_resources function is a builtin function defined for all your
     # plugin code. It loads files from the plugin zip file. It returns
     # the bytes from the specified file.
     #
     # Note that if you are loading more than one file, for performance, you
     # should pass a list of names to get_resources. In this case,
     # get_resources will return a dictionary mapping names to bytes. Names that
     # are not found in the zip file will not be in the returned dictionary.
     text = get_resources('about.txt')
     QMessageBox.about(self, 'About the Interface Plugin Demo',
             text.decode('utf-8'))
開發者ID:Aliminator666,項目名稱:calibre,代碼行數:15,代碼來源:main.py

示例2: makeDatabase

# 需要導入模塊: from PyQt5.Qt import QMessageBox [as 別名]
# 或者: from PyQt5.Qt.QMessageBox import about [as 別名]
    def makeDatabase(self):
        '''Runs recollindex outside calibre like in a terminal. 
        Look for recollindex for more information about the flags and options'''
        self.cmd = [prefs['pathToRecoll'] + '/recollindex', '-c', prefs['pathToCofig'] + '/plugins/recollFullTextSearchPlugin']
        #TODO: Fix for Linux
        #self.cmd = 'LD_LIBRARY_PATH="" ' + prefs['pathToRecoll'] + '/recollindex -c ' + prefs['pathToCofig'] + '/plugins/recollFullTextSearchPlugin'
        if self.replaceDatabase == True :
            self.cmd += [' -z']
        self.p = Popen(self.cmd,  shell=False)
        # TODO: Was close_fds nessesary? check it on linux
        #self.p = Popen(self.cmd,  shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)

        box = QMessageBox()
        box.about(self, 'Please read! \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t','Depending on you library size this operation can take a lot of time.\nThe process runs outside calibre so you can use or close it, but do not use this plugin.\nFor now there is no information about when recoll finishs,\nso look up, whether a recoll of recollindex process is running on you system.')
開發者ID:idealist1508,項目名稱:Recoll-Full-Text-Search-For-Calibre,代碼行數:16,代碼來源:main.py

示例3: about

# 需要導入模塊: from PyQt5.Qt import QMessageBox [as 別名]
# 或者: from PyQt5.Qt.QMessageBox import about [as 別名]
 def about(self):
     text = get_resources('about.txt')
     QMessageBox.about(self, 'About the Calibre Book Brainz Plugin',
                       text.decode('utf-8'))
開發者ID:s17k,項目名稱:CalibreBookBrainzPlugin,代碼行數:6,代碼來源:main.py

示例4: about

# 需要導入模塊: from PyQt5.Qt import QMessageBox [as 別名]
# 或者: from PyQt5.Qt.QMessageBox import about [as 別名]
 def about(self):
     text = get_resources('about.txt')
     QMessageBox.about(self, 'About calibrebeam',
             text.decode('utf-8'))
開發者ID:1tjcaron,項目名稱:calibrebeam,代碼行數:6,代碼來源:config.py

示例5: help

# 需要導入模塊: from PyQt5.Qt import QMessageBox [as 別名]
# 或者: from PyQt5.Qt.QMessageBox import about [as 別名]
 def help(self):
     text = get_resources('help.txt')
     QMessageBox.about(self, 'Help exlibris', text.decode('utf-8'))
開發者ID:pettarin,項目名稱:exlibris,代碼行數:5,代碼來源:main.py

示例6: about

# 需要導入模塊: from PyQt5.Qt import QMessageBox [as 別名]
# 或者: from PyQt5.Qt.QMessageBox import about [as 別名]
 def about(self):
     text = get_resources('about.txt')
     QMessageBox.about(self, 'About the OPDS Client plugin', text.decode('utf-8'))
開發者ID:sbobovyc,項目名稱:opds-reader,代碼行數:5,代碼來源:main.py

示例7: about

# 需要導入模塊: from PyQt5.Qt import QMessageBox [as 別名]
# 或者: from PyQt5.Qt.QMessageBox import about [as 別名]
 def about(self):
     QMessageBox.about(self, 'About', 'GUI for ppscannos.')
開發者ID:TwoManyHats,項目名稱:GuiScannos,代碼行數:4,代碼來源:mainwin.py


注:本文中的PyQt5.Qt.QMessageBox.about方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。