Re: [pygame] Update Python 2.7 project to work with Python 3

2021-04-27 Thread David
just dump 2.7 and move to the more relevant 3.x On Tue, Apr 27, 2021 at 2:25 AM Jeff Mitchell wrote: > Is there an easy way to update an old project ( > https://sourceforge.net/projects/twodracing/) to work with the latest > Python/Pygame? I'd like to get this 2D driving simulator to run. > --

Re: [pygame] Update Python 2.7 project to work with Python 3

2021-04-27 Thread Jeff Mitchell
This project uses a GUI and the program source may not be compatible with the latest version of the GUI. I'd be better off to write from scratch. Even if I don't implement drag or acceleration, I can use pi and trig to have an object travel at angles, as a minimum (one step at a time). When I'v

Re: [pygame] Update Python 2.7 project to work with Python 3

2021-04-27 Thread Thomas Kluyver
You can try the 2to3 command line tool included as part of Python: https://docs.python.org/3/library/2to3.html This can quickly and reliably do the simple, repetitive work like changing 'print x' to 'print(x)' for Python 3. But you'll probably still need to spend a while manually debugging the cod

Re: [pygame] Update Python 2.7 project to work with Python 3

2021-04-26 Thread BW
Hi Jeff. Do a web search for "python 2to3" code convertor. On 4/26/2021 10:26 PM, Jeff Mitchell wrote: Is there an easy way to update an old project (https://sourceforge.net/projects/twodracing/ ) to work with the latest Python/Pygame? I'd like t