Esempio n. 1
0
def main():
    app = QApplication(sys.argv)
    app.setWindowIcon(QIcon(ROOT + RES + ICONS + LOGO))

    gui = GUI()
    if gui.config.plastique(): app.setStyle(STYLE)
    gui.show()

    sys.exit(app.exec_())
Esempio n. 2
0
def _get_gui(qtbot):
    w = GUI(under_test=True)
    qtbot.addWidget(w)
    with qtbot.waitExposed(w):
        w.show()
    return w
Esempio n. 3
0
def gui(qtbot):
    w = GUI(under_test=True)
    qtbot.addWidget(w)
    qtbot.waitForWindowShown(w)
    return w
Esempio n. 4
0
 def test_gui(self):
     window = tk.Tk()
     gui = GUI(window, 7)
     self.assertEqual(gui.block_size, 7)
     self.assertIsNone(gui.image_path)
     self.assertEqual(window.title(), 'Image-Scanner')