Example #1
0
 def setUp(self) -> None:
     self.container = QWidget()
     stdb = NotificationWidget.Ok | NotificationWidget.Close
     self.overlay = NotificationOverlay(self.container)
     self.notif = NotificationWidget(title="lol",
                                     text="hihi",
                                     standardButtons=stdb)
     self.container.show()
     QTest.qWaitForWindowExposed(self.container)
     self.overlay.show()
     QTest.qWaitForWindowExposed(self.overlay)
Example #2
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.notification_overlay = NotificationOverlay(self.scheme_widget)