Re: Moving object on page leaves afterimage on Python 3 but not on 2

Michael Lange <[email protected]>
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
Hi,

On Thu, 4 Feb 2016 14:58:11 +0200
Reinis Danne <[email protected]> wrote:

> To test:
> $ git clone https://gitlab.com/bkchem/bkchem.git
> $ cd bkchem
> $ git submodule init
> $ git submodule update
> $ python3 bkchem/bkchem.py

this looks like quite a complex piece of code. Is it possible for you to
provide a simpler example that exhibits the problem?
Some additional information might also be helpful to track down the
problem:
* which platform are you running (Windows / X / Mac)?
* do your Python 2 / 3 versions share the same Tk version?
* which Tk version(s) do you use?

Without having reviewed the code I can only try a quick shot in the dark:
maybe Python 2 and 3 do *not* use the same Tk and these Tk versions
behave slightly differently. Maybe inserting additional calls to
update_idletasks() here and there might help. At a quick glance the
redraw() method in your graphics module might be a candidate for this.
Have you already tried that?

Best regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

There's nothing disgusting about it [the Companion].  It's just another
life form, that's all.  You get used to those things.
		-- McCoy, "Metamorphosis", stardate 3219.8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.