本文整理汇总了Python中qtpy.QtWidgets.QMessageBox.about方法的典型用法代码示例。如果您正苦于以下问题:Python QMessageBox.about方法的具体用法?Python QMessageBox.about怎么用?Python QMessageBox.about使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类qtpy.QtWidgets.QMessageBox
的用法示例。
在下文中一共展示了QMessageBox.about方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: help
# 需要导入模块: from qtpy.QtWidgets import QMessageBox [as 别名]
# 或者: from qtpy.QtWidgets.QMessageBox import about [as 别名]
def help(self):
"""Help on Spyder console"""
QMessageBox.about(
self,
_("Help"),
"""<b>%s</b>
<p><i>%s</i><br> edit foobar.py
<p><i>%s</i><br> xedit foobar.py
<p><i>%s</i><br> run foobar.py
<p><i>%s</i><br> clear x, y
<p><i>%s</i><br> !ls
<p><i>%s</i><br> object?
<p><i>%s</i><br> result = oedit(object)
"""
% (
_("Shell special commands:"),
_("Internal editor:"),
_("External editor:"),
_("Run script:"),
_("Remove references:"),
_("System commands:"),
_("Python help:"),
_("GUI-based editor:"),
),
)
示例2: show_info
# 需要导入模块: from qtpy.QtWidgets import QMessageBox [as 别名]
# 或者: from qtpy.QtWidgets.QMessageBox import about [as 别名]
def show_info(self):
QMessageBox.about(
self, QApplication.applicationName(),
"%s %s\n"
"Copyright (c) by %s" %
(
QCoreApplication.applicationName(),
QCoreApplication.applicationVersion(),
QCoreApplication.organizationName(),
)
)
示例3: about
# 需要导入模块: from qtpy.QtWidgets import QMessageBox [as 别名]
# 或者: from qtpy.QtWidgets.QMessageBox import about [as 别名]
def about(self):
"""About Conda Package Manager."""
var = {'github': 'https://github.com/spyder-ide/conda-manager'}
QMessageBox.about(self, _("About"), """
<p><b>Conda Package Manager</b></p>
<p>Copyright © 2015 The Spyder Development Team<br>
Licensed under the terms of the MIT License</p>
<p>Created by Gonzalo Peña-Castellanos<br>
Developed and maintained by the Spyder Development Team.</p>
<p>For bug reports and feature requests, please go
to our <a href="{github}">Github website</a>.</p>
<p>This project is part of a larger effort to promote and
facilitate the use of Python for scientific and engineering
software development. The popular Python distributions
<a href="http://continuum.io/downloads">Anaconda</a>,
<a href="https://winpython.github.io/">WinPython</a> and
<a href="http://code.google.com/p/pythonxy/">Python(x,y)</a>
also contribute to this plan.</p>
""".format(**var))