Exemple #1
0
    def startNotificationTest(self):
        texte = [
            "Vor langer langer Zeit lebte ein Tux in Österreich und hatte keine Windows daheim",
            "Quod erat demonsdrandum",
            "Einer der nichts weiß und nicht weiß das er nichts weiß, weiß weniger als einer der weiß dass er nichts weiß"
        ]
        """ start showing Notification within a Thread for non blocking """
        # creates the Notification Dialog
        n = Notification_Core()
        notification = Notification(n)
        notification.showInformation(texte[0])

        n = Notification_Core()
        notification = Notification(n)
        notification.setDemo()
        notification.showError(texte[1])

        n = Notification_Core()
        notification = Notification(n)
        notification.setDemo()
        notification.showWarning(texte[2])

        n = Notification_Core()
        notification = Notification(n)
        notification.setDemo()
        notification.showSuccess(texte[0])