当前位置: 首页>>代码示例>>Python>>正文


Python QMessageBox.about方法代码示例

本文整理汇总了Python中PyQt5.QtWidgets.QMessageBox.about方法的典型用法代码示例。如果您正苦于以下问题:Python QMessageBox.about方法的具体用法?Python QMessageBox.about怎么用?Python QMessageBox.about使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PyQt5.QtWidgets.QMessageBox的用法示例。


在下文中一共展示了QMessageBox.about方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: downloaded

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def downloaded(self, t, slices):
        """finish a video downloading
        """
        print('downloaded')
        for k, v in self.row2qthread.items():
            if v == t:
                if slices == -1:
                    s = '下载出错:'+ self.downloadWidget.item(k, 0).text()
                    item = QTableWidgetItem(s)
                    self.downloadWidget.setItem(k, 0, item)
                elif slices == -2:
                    s = '结束下载:'+ self.downloadWidget.item(k, 0).text()
                    item = QTableWidgetItem(s)
                    self.downloadWidget.setItem(k, 0, item)
                else:
                    item = QTableWidgetItem('{0}/{0}'.format(slices))
                    self.downloadWidget.setItem(k, 2, item)
                    QMessageBox.about(self, '哔哩哔哩工具箱 v1.1 - ©Tich', '{} 下载完成!'.format(self.downloadWidget.item(k, 0).text()))
                break 
开发者ID:taseikyo,项目名称:PyQt5-Apps,代码行数:21,代码来源:main.py

示例2: keyPressEvent

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def keyPressEvent(self, event):
        if event.key() == Qt.Key_Escape:
            self.reset_view()

        if event.key() == Qt.Key_F1:
            self.set_alias_visibility(not self.aliases_visible)

        if event.key() == Qt.Key_F2:
            self.set_port_visibility(not self.ports_visible)

        if event.key() == Qt.Key_F3:
            self.set_subport_visibility(not self.subports_visible)


        if event.key() == Qt.Key_Question:
            help_str = """
            Mouse control:
              Mousewheel: Zoom in and out
              Right-click & drag: Zoom to rectangle
              Middle-click & drag: Pan

            Keyboard shortcuts:
              Esc: Reset view
              F1: Show/hide alias names
              F2: Show/hide ports
              F3: Show/hide subports (ports in underlying references)
            """
            QMessageBox.about(self, 'PHIDL Help', help_str) 
开发者ID:amccaugh,项目名称:phidl,代码行数:30,代码来源:quickplotter.py

示例3: about

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def about(self):QMessageBox.about(self,'关于','作者:\thgjazhgj  \n项目地址:https://github.com/hgjazhgj/FGO-py  \n联系方式:huguangjing0411@geektip.cc  \n防呆不放蠢,大力出奇迹!') 
开发者ID:hgjazhgj,项目名称:FGO-py,代码行数:3,代码来源:fgoGui.py

示例4: createNewFile

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def createNewFile(self):
        """File is created in Groot/ in Google Drive
        heading: file with title in the GUI is passed as heading
        summary: file content"""

        result = createFile(self.titleEdit.text(),self.summaryEdit.toPlainText())
        if result == 'Successful':
            QMessageBox.about(self, "Successful","File Creation Successful")
        else:
            QMessageBox.about(self,"Warning",result) 
开发者ID:ugroot,项目名称:GROOT,代码行数:12,代码来源:notesWindow.py

示例5: passwordCollection

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def passwordCollection(self):
        details = {'Sender':self.senderEdit.text(),'Receiver':self.receiverEdit.text(),'Subject':self.subjectEdit.text(),'Message':self.messageEdit.toPlainText()}
        self.passwordText = self.confirmWindow.passwordEdit.text()
        details['Password'] = self.passwordText
        reply = shootMail(details)
        if reply == 'Success':
            QMessageBox.about(self, "Successful","Mail Sent Succesfully")
        else:
            QMessageBox.about(self,"Warning Error Occured",reply) 
开发者ID:ugroot,项目名称:GROOT,代码行数:11,代码来源:mailWindow.py

示例6: messageBox

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def messageBox(self, showInfo):
        """:author : Tich
        show information."""
        box = QMessageBox.about(self, 'Words Recoder 1.0', showInfo) 
开发者ID:taseikyo,项目名称:PyQt5-Apps,代码行数:6,代码来源:main.py

示例7: connectSlots

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def connectSlots(base, w):
    """:author : Tich
    connect w with base slots
    """
    # close event
    w.actionexit.triggered.connect(base.close)
    # about
    w.actionabout.triggered.connect(lambda: base.messageBox("Words Recoder 1.0: Recod unknown words into the MySQL database."))
    # heko
    w.actionhelp.triggered.connect(lambda: base.messageBox("1.click 'File - connect' to connect MySQL.\
                                                                                               \n2. click button 'insert' to insert new word. \
                                                                                              \n3. click button 'query' to query word."))
    # import data via file
    w.actionimport.triggered.connect(lambda: base.importData(w)) 
    # export data as .csv file
    w.actionexport.triggered.connect(base.exportDataAsCSV) 
    # connect to MySQL
    w.actionconnect.triggered.connect(lambda: base.connectDatabase(w)) 

    w.insert.clicked.connect(lambda: base.insert(w))
    w.insert.setShortcut('Ctrl+Return')

    w.query.clicked.connect(lambda: base.query(w))
    w.query.setShortcut('Ctrl+Q')

    w.update.clicked.connect(lambda: base.update(w))
    w.update.setShortcut('Ctrl+U')

    w.delet.clicked.connect(lambda: base.delete(w))
    w.delet.setShortcut('Ctrl+D') 
开发者ID:taseikyo,项目名称:PyQt5-Apps,代码行数:32,代码来源:main.py

示例8: buyTicket

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def buyTicket(self,freq,button):
		'''买票操作'''
		choice = freq.currentIndex()
		city = self.comboBox.currentIndex() 
		amount = int(button.text()) # 获得单行文本框内容

		if amount <= self.TicketList[city][choice]:
			self.TicketList[city][choice] -= amount
			QMessageBox.about(self,"购票提示","成功购票!")
			self.searchTicket()

		else:
			QMessageBox.warning(self,"购票提示","车票数量不够,请重新购票!") 
开发者ID:Yeah-Kun,项目名称:python,代码行数:15,代码来源:buy_ticket.py

示例9: about

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def about(self):
        s = ('<b>WONAMBI Version {version}</b><br />'
             '<p>You can download the latest version at '
             '<a href="https://github.com/wonambi-python/wonambi">'
             'https://github.com/wonambi-python/wonambi</a> '
             'or you can upgrade to the latest release with:'
             '</p><p>'
             '<code>pip install --upgrade wonambi</code>'
             '</p><p>'
             'Copyright &copy; 2013-{year} '
             '<a href="http://www.gpiantoni.com">Gio Piantoni</a>, '
             "Jordan O'Byrne"
             '</p><p>'
             'This program is free software: you can redistribute it '
             'and/or modify it under the terms of the GNU General Public '
             'License as published by the Free Software Foundation, either '
             'version 3 of the License, or (at your option) any later version.'
             '</p><p>'
             'This program is distributed in the hope that it will be useful, '
             'but WITHOUT ANY WARRANTY; without even the implied warranty of '
             'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the '
             'GNU General Public License for more details.'
             '</p><p>'
             'You should have received a copy of the GNU General Public '
             'License along with this program.  If not, see '
             '<a href="http://www.gnu.org/licenses/">'
             'http://www.gnu.org/licenses/</a>.'
             '</p><p>'
             'Other licenses available, contact the author'
             '</p>')
        QMessageBox.about(self, 'WONAMBI', s.format(version=__version__,
                                                    year=now.year)) 
开发者ID:wonambi-python,项目名称:wonambi,代码行数:34,代码来源:scroll_data.py

示例10: on_show_about_clicked

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def on_show_about_clicked(self):
        descr = "<b><h2>Universal Radio Hacker</h2></b>Version: {0}<br />" \
                "GitHub: <a href='https://github.com/jopohl/urh'>https://github.com/jopohl/urh</a><br /><br />" \
                "Creators:<i><ul><li>" \
                "Johannes Pohl &lt;<a href='mailto:joahnnes.pohl90@gmail.com'>johannes.pohl90@gmail.com</a>&gt;</li>" \
                "<li>Andreas Noack &lt;<a href='mailto:andreas.noack@hochschule-stralsund.de'>andreas.noack@hochschule-stralsund.de</a>&gt;</li>" \
                "</ul></i>".format(version.VERSION)

        QMessageBox.about(self, self.tr("About"), self.tr(descr)) 
开发者ID:jopohl,项目名称:urh,代码行数:11,代码来源:MainController.py

示例11: _logging_error

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def _logging_error(self, log_conf, msg):
        QMessageBox.about(self, "Log error", "Error when starting log config"
                                             " [{}]: {}".format(log_conf.name,
                                                                msg)) 
开发者ID:bitcraze,项目名称:crazyflie-clients-python,代码行数:6,代码来源:main.py

示例12: _logging_error

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def _logging_error(self, log_conf, msg):
        """Callback from the log layer when an error occurs"""
        QMessageBox.about(self, "Plot error", "Error when starting log config"
                          " [%s]: %s" % (log_conf.name, msg)) 
开发者ID:bitcraze,项目名称:crazyflie-clients-python,代码行数:6,代码来源:GpsTab.py

示例13: _logging_error

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def _logging_error(self, log_conf, msg):
        QMessageBox.about(self, "Log error",
                          "Error when starting log config [%s]: %s" % (
                              log_conf.name, msg)) 
开发者ID:bitcraze,项目名称:crazyflie-clients-python,代码行数:6,代码来源:FlightTab.py

示例14: _logging_error

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def _logging_error(self, log_conf, msg):
        """Callback from the log layer when an error occurs"""

        QMessageBox.about(
            self, "Example error", "Error when using log config"
            " [{0}]: {1}".format(log_conf.name, msg)) 
开发者ID:bitcraze,项目名称:crazyflie-clients-python,代码行数:8,代码来源:QualisysTab.py

示例15: _logging_error

# 需要导入模块: from PyQt5.QtWidgets import QMessageBox [as 别名]
# 或者: from PyQt5.QtWidgets.QMessageBox import about [as 别名]
def _logging_error(self, log_conf, msg):
        """Callback from the log layer when an error occurs"""
        QMessageBox.about(
            self, "Plot error", "Error when starting log config [%s]: %s" % (
                log_conf.name, msg)) 
开发者ID:bitcraze,项目名称:crazyflie-clients-python,代码行数:7,代码来源:PlotTab.py


注:本文中的PyQt5.QtWidgets.QMessageBox.about方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。