Example #1
1
def restoration_restart(parent):
    """
    Parent: a QWidget or None.
    A QApplication must exist
    """
    title = tr("EAS restarts to complete the restoration process")
    message = tr("<h2>Now restarting Edenwall Administration Suite.</h2>\n"
    "After reconnecting to the EdenWall appliance, you may edit its "
    "configuration in the 'System' and 'Services' tabs, then click on the "
    "'Apply' button. You will also have to select a set of firewall rules in "
    "the 'Firewall' tab.")

    icon = QPixmap(":icons/chrono")
    msgbox = QMessageBox(
        QMessageBox.Information,
        title,
        message,
        QMessageBox.Ok,
        parent,
    )
    msgbox.setIconPixmap(icon)

    msgbox.exec_()

    restart_eas()
Example #2
0
 def _mkStatics():
     DetailsButton._ICONS = {
         True: QIcon(":/icons/fold"),
         False: QIcon(":/icons/unfold")
     }
     DetailsButton._TOOLTIPS = {
         True: tr("Click to fold"),
         False: tr("Click to unfold")
     }
Example #3
0
    def __init__(self, editor, parent=None):
        QWizardPage.__init__(self, parent)

        self.editor = editor

        self.setTitle(tr("Network Editor"))
        self.setSubTitle(tr("Set network parameters below"))
        box = QVBoxLayout(self)
        box.addWidget(self.editor)
Example #4
0
def start_eas(host, client, app):
    multisite_client = MultisiteClient(host, client)

    # Add splash screen
    pixmap = QPixmap(":/images/splash_start.png")
    splash = QSplashScreen(pixmap)
    splash.setMask(QRegion(pixmap.mask()))
    splash.setPixmap(pixmap)
    splash.show()
    app.splash = splash
    splash.showMessage(tr("Loading application"), Qt.AlignBottom | Qt.AlignRight)
    app.processEvents()

    # Load the main window
    from console_edenwall import MainWindow

    window = MainWindow(app, multisite_client)
    window.show()
    splash.finish(window)
Example #5
0
 def __make_gui(self):
     self.setTitle(tr("Network Editor"))
     self.setSubTitle(tr("Select the interface to which you want to add a network"))
     box = QVBoxLayout(self)
     self.__dropdown = QComboBox()
     box.addWidget(self.__dropdown)