Here's an example code to create a tkinter GUI that shows the average and standard deviation of a list of numbers inputted by the user.
main.py1405 chars44 lines
When the user clicks the "Calculate" button, the program gets the list of numbers from the entry box, converts the strings to floats, calculates the mean and standard deviation using the statistics
module, and displays the results in labels. The mean is formatted to two decimal places and the standard deviation is also formatted to two decimal places.
gistlibby LogSnag