as the title says, I have a problem following the Youtube tutorial where person creates a Spinbox and allows it to take values from zero to infinity. In their application it works, however when I do it on my computer (Mac) the spinbox shows nothing in the value section (meaning that no numbers show up and by clicking on arrows nothing happens). I assume it might be related to differences in Python versions (mine is 3.12.3 while theirs is 3.7.1), but I am unsure. Mind you, there are no errors appearing during the process of running the program.
Here is the piece of code that I have related to the problem:
numcourses_spinbox = tkinter.Spinbox(courses_frame, from_ = 0, to = 'infinity')
numcourses_spinbox.grid(row = 1, column = 1)
I have tried to look for the mistakes in my code by comparing my results with person’s video and also to change ‘infinity’ string to integer number, which has worked for me as a solution. However, writing manualy the borderline for the amount of courses is not very efficient for me.
Igris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.