Moving a window on the screen

ast nomail at
Thu Nov 6 10:18:08 CET 2014

"Chris Angelico" <rosuav at> a écrit dans le message de 
news:mailman.15536.1415264262.18130.python-list at

> You usually don't want to use time.sleep() in a GUI program. Try doing
> the same thing, but with an event loop delay call instead; often, the
> display won't update until you go back to the main loop.

Ok, thx, it works now with:

import tkinter
fen = tkinter.Tk()


def moveW():
    global x
    fen.geometry("200x200+%d+10"  %  x)
    x = x + 10
    if (x < 1200):
        fen.after(50, moveW)


More information about the Python-list mailing list