fixing fixes
MODIFY
PyPortal_ObliqueStrategies/oblique.py
PyPortal_ObliqueStrategies/oblique.py
@@ -3,7 +3,6 @@ This code will display a random strategy from strategies.py when the
PyPortal screen is pressed. See the original Oblique Strategies
by Brian Eno & Peter Schmidt here: https://www.enoshop.co.uk/product/oblique-strategies
"""
-import os
import random
import board
from strategies import strategies
@@ -27,9 +26,8 @@ pyportal.set_text("OBLIQUE STRATEGIES\nBrian Eno / Peter Schmidt") # show title
while True:
if pyportal.touchscreen.touch_point:
- # get random string from array and wrap
+ # get random string from array and wrap w line breaks
strat = pyportal.wrap_nicely(random.choice(strategies), 35)
- # convert wrap array into line breaks
outstring = '\n'.join(strat)
# display new text
pyportal.set_text(outstring, 0)

fixing fixes