예제 #1
0
파일: siteki.py 프로젝트: Xifax/siteki
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_())
예제 #2
0
def _get_gui(qtbot):
    w = GUI(under_test=True)
    qtbot.addWidget(w)
    with qtbot.waitExposed(w):
        w.show()
    return w
예제 #3
0
def gui(qtbot):
    w = GUI(under_test=True)
    qtbot.addWidget(w)
    qtbot.waitForWindowShown(w)
    return w
예제 #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')