This app will simulate rolling several dice at once. It allows users to change the type of dice rolled as well as the number of dice rolled. It will display the current roll as well as a history of previous rolls.
There is a python Dice Bag as well.
This app uses several nested vertical and horizontal arrangements to set up the view.
The main code is in the event handler for the roll button click.
It first needs to make sure that the textbox text is a number, then it can roll all the dice using a procedure.
It will then store the results in a list, then add that list to the history.
Finally it will neatly display the history of all the dice rolls using another procedure.
This display results procedure is also useful when coding the clear history button.