![]() |
| ||
| Class issue. So I am getting into the swing of python in my class, and am currently trying to take a program from an example, and making it much more condensed. The issue I am having, is there are many classes for a tkinter guessing game. def question5(): The class question 5 is one of 5(obviously) that checks for a right answer. I was trying to make a class that would dynamically check based on what entry box I was entering into. How would I get that to work with the class, or is it even possible? |
| ||
| Re: Class issue. I don't see a class in your code. |
| ||
| Re: Class issue. Eh yah, sorry wasn't thinking straight when I made this post last night. What I meant was: The procedure question 5 is one of 5(obviously) that checks for a right answer. I was trying to make a procedure that would dynamically check based on what entry box I was entering into. How would I get that to work with the procedure, or is it even possible? Sorry for the confusion. |
| ||
| Re: Class issue. While I look stupid with the wrong title for this thread(mod help with edit button please?), I still have the issue with procedure condensing. Anyone have any ideas? |
| ||
| Re: Class issue. When in doubt run a simplified test code: # test Tkinter Entry |
| ||
| Re: Class issue. I'll write up a better explination later, but here is a class that would create the widget and check your answers: from Tkinter import * you can see the call to the class there at the end. |
| All times are GMT -4. The time now is 8:13 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC