Marble Solitary #1258
Replies: 1 comment 3 replies
-
Neat - Thanks for sharing! The only comment I'd have on the code is that the list of buttons could probably be procedurally generated (i.e., a pair of for loops creating buttons, rather than 36 explicit creations statements) - but that's an optimization, not anything critical. Another (and more Toga-specific) cleanup would be to combine the Button creation call with the
The only reason to explicitly create and assign the widgets to variables is if you need to reference the widget later. However, in your case, you're handling everything with the My question to you: any feedback on the Toga? Any features or changes that you'd like to see that would have made the development experience better? |
Beta Was this translation helpful? Give feedback.
-
I created Marble/Peg Solitary Game in Toga, with buttons and colors, relying on ids for placements:
2021-05-11_12-38-33.mp4
I didn't do any comments so take your time to read the code, and suggestions are welcomed:
https://gist.github.com/PyICoder/f0a77b5177bfbdefc6ebae089829ef35
Beta Was this translation helpful? Give feedback.
All reactions