当前位置: 首页>>代码示例>>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;未经允许,请勿转载。