def accept(self): ''' Shows the file select dialog based on the chosen options. :return: ''' self.__errors = 0 self.loadedFiles.clear() self.ignoredFiles.clear() loadType = self.fileType.currentText() fileMode = None option = QFileDialog.ShowDirsOnly if loadType == 'txt' or loadType == 'dbl': fileMode = QFileDialog.DirectoryOnly elif loadType == 'wav': fileMode = QFileDialog.DirectoryOnly elif loadType == 'HolmImpulse': fileMode = QFileDialog.ExistingFile option = QFileDialog.DontConfirmOverwrite elif loadType == 'REW': fileMode = QFileDialog.DirectoryOnly elif loadType == 'ARTA': fileMode = QFileDialog.DirectoryOnly else: QMessageBox.about(self, "Error", "Unknown format " + loadType) if fileMode is not None: self.__dialog.setFileMode(fileMode) self.__dialog.setOption(option) self.__dialog.setWindowTitle("Load Measurements") self.__dialog.exec()
def about(self): """Show messagebox for about.""" QMessageBox.about( self, "About music player a/b loop", "The music player a/b loop is made by <b>ok97465</b>", )
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:"), ), )
def display(self): addie_version = self.get_appli_version() python_version = self.get_python_version() numpy_version = numpy_version_str mantid_version = mantid.__version__ matplotlib_version = matplotlib_version_str qt_version = QT_VERSION_STR pyqt_version = PYQT_VERSION message = ''' Addie version %s Library versions: - Python: %s - Numpy: %s - Mantid: %s - Matplotlib: %s - pyoncat: %s - Qt: %s - PyQt: %s ''' % (addie_version, python_version, numpy_version, mantid_version, matplotlib_version, pyoncat_version, qt_version, pyqt_version) QMessageBox.about(self.parent, "About Addie", message)
def about(self): self.logger.info("MainWindow.about") QMessageBox.about( self, "About xrayspectrumanalyzer", "The <b>xrayspectrumanalyzer</b> extract peak intensity from EDS spectrum." )
def on_update(self): """check for a newer version""" is_newer = False if self.win_parent is not None: is_newer = self.win_parent._check_for_latest_version() if not is_newer: self.update_button.setDisabled(True) QMessageBox.about(self, 'About pyNastran GUI', 'PyNastran GUI is already up to date')
def about_dialog(self): """ Display about dialog """ copyright = gui_utils.__copyright__ if qt_version == 'pyside': word = 'PySide' copyright_qt = gui_utils.__pyside_copyright__ else: word = 'PyQt' copyright_qt = gui_utils.__pyqt_copyright__ about = [ 'pyNastran %s GUI' % word, '', 'pyNastran v%s' % gui_utils.__version__, copyright, copyright_qt, gui_utils.__author__, '', '%s' % gui_utils.__website__, '', 'Mouse', 'Left Click - Rotate', 'Middle Click - Pan/Recenter Rotation Point', 'Shift + Left Click - Pan/Recenter Rotation Point', 'Right Mouse / Wheel - Zoom', '', 'Keyboard Controls', #'r - reset camera view', #'X/x - snap to x axis', #'Y/y - snap to y axis', #'Z/z - snap to z axis', #'', #'h - show/hide legend & info', 'CTRL+I - take a screenshot (image)', 'CTRL+L - cycle the results forwards', 'CTRL+K - cycle the results backwards', #'m/M - scale up/scale down by 1.1 times', #'o/O - rotate counter-clockwise/clockwise 5 degrees', 'p - pick node/element', 's - view model as a surface', 'w - view model as a wireframe', 'f - set rotation center (zoom out when picking', ' to disable clipping)', 'e - view model edges', 'b - change edge color from scalar/black', '', 'Reload Model: using the same filename, reload the model', ] #message_box = QMessageBox() #message_box.setStyleSheet( #'QMessageBox {background-color: #2b5b84; color: white;}\n' #'QPushButton{color: white; font-size: 16px; background-color: #1d1d1d; ' #'border-radius: 10px; padding: 10px; text-align: center;}\n' #' QPushButton:hover{color: #2b5b84;}') #message_box.setFont(self.font()) QMessageBox.about(self, "About pyNastran GUI", "\n".join(about))
def show_info(self): QMessageBox.about( self, QApplication.applicationName(), "%s %s\n" "Copyright (c) by %s" % ( QCoreApplication.applicationName(), QCoreApplication.applicationVersion(), QCoreApplication.organizationName(), ) )
def about(self): """ Reset message box is based on aboutWindow object For some reason, I did not get time to fix that :return: """ about_message_box = QMessageBox().window() about_message_box.about( self.pushButton, "Info", "Please restart guiscrcpy to reset the settings. " "guiscrcpy will now exit", ) about_message_box.addButton("OK", about_message_box.hide) # noqa: about_message_box.show()
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:')))
def about(self): """About test launcher""" from qtpy.QtCore import __version__ as qt_version QMessageBox.about( self, "About " + self.windowTitle(), """<b>%s</b><p>Developped by Pierre Raybaut <br>Copyright © 2020 Pierre Raybaut <p>Python %s, Qt %s on %s""" % ( self.windowTitle(), platform.python_version(), qt_version, platform.system(), ), )
def about(self): QMessageBox.about( self, _("About ") + APP_NAME, """<b>%s</b> v%s<p>%s Pierre Raybaut <br>Copyright © 2009-2010 CEA <p>Python %s, Qt %s %s %s""" % ( APP_NAME, VERSION, _("Developped by"), platform.python_version(), __version__, _("on"), platform.system(), ), )
def reset(self): """ Remove configuration files; Reset the mapper and guiscrcpy.json :return: """ self.cfgmgr.reset_config() log("CONFIGURATION FILE REMOVED SUCCESSFULLY") log("RESTART") message_box = QMessageBox().window() message_box.about( self.pushButton, "Info", "Please restart guiscrcpy to reset the settings. " "guiscrcpy will now exit", ) QMessageBox.ButtonRole() message_box.addButton("OK", self.quit_window) # noqa: message_box.show()
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))
def popup_msg(self, title, error_string): QMessageBox.about(self, title, error_string)
def about(self): QMessageBox.about( self, "About IvAnalyzer", "IvAnalyzer application allows exploring and analyzing sets of IV sweeps.\n" "(c) 2018 Felix Jaeckel <*****@*****.**>")
def about(self): """Display some information about the program""" text = "<b>Tool GUI v0.1</b><br>" + \ "Author: Malek Cellier<br><br>" + \ "The <b>Tool GUI</b> example shows use of the Qt framework.<br>" QMessageBox.about(self, "About the Tool Gui", text)