Exemple #1
0
    def about(self):
        """ Display About Dialog """

        mess = qt.QtGui.QMessageBox.about(
            self, "About Visualea",
            "Version %s\n\n" % (metainfo.get_version()) +
            "VisuAlea is part of the OpenAlea framework.\n" +
            metainfo.get_copyright() +
            "This Software is distributed under the Cecill-V2 License.\n\n" +
            "Visit " + metainfo.url + "\n\n")
    def about(self):
        """ Display About Dialog """

        mess = qt.QtGui.QMessageBox.about(self, "About Visualea",
                                          "Version %s\n\n" % (metainfo.get_version()) +
                                          "VisuAlea is part of the OpenAlea framework.\n" +
                                          metainfo.get_copyright() +
                                          "This Software is distributed under the Cecill-V2 License.\n\n" +
                                          "Visit " + metainfo.url + "\n\n"
                                          )
Exemple #3
0
def show_splash_screen():
    """Show a small splash screen to make people wait for OpenAlea to startup"""
    import metainfo
    pix = qt.QtGui.QPixmap(":/icons/splash.png")
    splash = qt.QtGui.QSplashScreen(pix, qt.QtCore.Qt.WindowStaysOnTopHint)
    splash.show()
    message = "" + metainfo.get_copyright() +\
              "Version : %s\n"%(metainfo.get_version(),) +\
              "Loading modules..."
    splash.showMessage(message, qt.QtCore.Qt.AlignCenter|qt.QtCore.Qt.AlignBottom)
    # -- make sure qt really display the message before importing the modules.--
    qt.QtGui.QApplication.processEvents()
    return splash
Exemple #4
0
def show_splash_screen():
    """Show a small splash screen to make people wait for OpenAlea to startup"""
    import metainfo
    pix = qt.QtGui.QPixmap(":/icons/splash.png")
    splash = qt.QtGui.QSplashScreen(pix, qt.QtCore.Qt.WindowStaysOnTopHint)
    splash.show()
    message = "" + metainfo.get_copyright() +\
              "Version : %s\n"%(metainfo.get_version(),) +\
              "Loading modules..."
    splash.showMessage(message, qt.QtCore.Qt.AlignCenter|qt.QtCore.Qt.AlignBottom)
    # -- make sure qt really display the message before importing the modules.--
    qt.QtGui.QApplication.processEvents()
    return splash