def test_tkinter_schedule_action(self):
        scheduler = TkinterScheduler(root)
        ran = [False]

        def action(scheduler, state):
            ran[0] = True
        scheduler.schedule(action)

        def done():
            assert ran[0] == True
            root.quit()

        root.after_idle(done)
        root.mainloop()
Exemplo n.º 2
0
    def test_tkinter_schedule_action(self):
        scheduler = TkinterScheduler(root)
        ran = [False]

        def action(scheduler, state):
            ran[0] = True

        scheduler.schedule(action)

        def done():
            assert ran[0] == True
            root.quit()

        root.after_idle(done)
        root.mainloop()
Exemplo n.º 3
0
    def test_tkinter_schedule_action(self):
        scheduler = TkinterScheduler(root)
        ran = False

        def action(scheduler, state):
            nonlocal ran
            ran = True

        scheduler.schedule(action)

        def done():
            assert ran is True
            root.quit()

        root.after_idle(done)
        root.mainloop()
Exemplo n.º 4
0
    def test_tkinter_schedule_action(self):
        scheduler = TkinterScheduler(root)
        ran = False

        def action(scheduler, state):
            nonlocal ran
            ran = True

        scheduler.schedule(action)

        def done():
            assert ran is True
            root.quit()

        root.after_idle(done)
        root.mainloop()