bext icon indicating copy to clipboard operation
bext copied to clipboard

goto is broken in 0.0.7 for unix/macos

Open davebur opened this issue 3 years ago • 1 comments

in init.py, I was able to fix goto by going to line 650 and re-inserting:

elif currentPlatform == 'unix': # macOS and Linux: import tty, termios, select, codecs # Used by getKey() getKey = GetKeyUnix().getkey goto = _goto_control_code

That restored it and I was able to get the bouncing DVD logo's program from chapter 5 of your book to run then. Not sure what the right fix is, but 0.0.7 appears broken at the moment. It also fixed the example rotating_cube.py too. This is on linux with with python3.9 and bext-0.0.7.

davebur avatar Jan 08 '22 21:01 davebur

hey I've been going through Big Book of Small Python Projects (thanks!). When trying to run the bouncingdvd project on a Mac I got:

NameError: name 'goto' is not defined

I got this error after trying to run the version of the program that I copied from the book and your version of the program that I downloaded. a few google clicks brought me to this page. After reading @davebur 's comment I pasted

goto = _goto_control_code

on line 651 of the bext init.py file and everything seems to be working. Thank you both!

karlWenninger avatar Jan 09 '22 23:01 karlWenninger