mitten on Nostr: So I’m trying to write some little static designs with py5 in Thonny, and when I ...
So I’m trying to write some little static designs with py5 in Thonny, and when I run the program, the sketch window opens but closes immediately, so I can’t really see what I’ve drawn. It only seems to happen when there is no “def draw():” component in the program (so, non-animated programs which only have the “def setup():” part). Is there a setting somewhere to tell Thonny to keep the sketch result open after running? #py5 #Python #Thonny
Published at
2024-06-01 23:51:06Event JSON
{
"id": "530e405868f35824aa0951928d02a3b2befa57cec3a6c7b77e0686de565e65a0",
"pubkey": "75de1eea15c2e5898ae739f064a9cf58bf786376052c27b454e4cd3abbc84358",
"created_at": 1717285866,
"kind": 1,
"tags": [
[
"t",
"py5"
],
[
"t",
"python"
],
[
"t",
"thonny"
],
[
"proxy",
"https://social.lol/users/mitten/statuses/112544046569075486",
"activitypub"
]
],
"content": "So I’m trying to write some little static designs with py5 in Thonny, and when I run the program, the sketch window opens but closes immediately, so I can’t really see what I’ve drawn. It only seems to happen when there is no “def draw():” component in the program (so, non-animated programs which only have the “def setup():” part). Is there a setting somewhere to tell Thonny to keep the sketch result open after running? #py5 #Python #Thonny",
"sig": "6218ee005b1b7d5a678aba469b6fbb05aa65ae2dd3398083ee0f99bb9f18397d47ae136ccdb9dc448b15b9409f75a9fb567f6ab3717fa48329e02a96cceb1269"
}