Visual Python workaround:
Thonny 4
from thonny.org
.<path_to_exe>\Thonny\
, <path_to_exe>\Thonny\Scripts\
folders (Settings, find ENV
environment variables, to discover <path_to_exe> open Thonny shortcat properties or just walk with File Explorer into the folder where Thonny.exe is placed, then click in location
edit box and copy desired path to a clipboard).
pip3 install --upgrade pip
pip3 install --upgrade vpython txaio twisted
edit -> deindent selected lines
once import txaio
txaio.use_asyncio()
from random import seed, randint
from vpython import *
palette=[ color.red, color.orange, color.yellow, \
color.green, color.cyan, color.blue, \
color.magenta ]
seed()
box( pos=vector(0, 0, -1.2), color=vector(.4, .6, .4), \
width=0.1, height=13, length=13)
sphere( color=color.orange, pos=vector(0, 4, 0))
for y in range(1, 5):
for x in range(0, y+1):
sphere(color=palette[ randint(0,6)], \
pos=vector(-y+2*x,4-1.7*y,0))
Prints this:
*2) xdg-settings set default-web-browser firefox-esr.desktop