(tkinter) variables effected by buttons | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

(tkinter) variables effected by buttons

working on a tkinter level up screen (something like fallout new Vegas's level up screen) and although I have the layout I can't make the variables add (or take away) a "points" variable via buttons (one for adding and vice versa) and also show the numbers being added and taking away on the GUI (if possible) thanks in advance

14th Jun 2018, 10:37 AM
error505
5 Answers
+ 3
So here's what I did. It's not very good because of hardcoding and displaying text made me some troubles, but it's a good place to start. https://code.sololearn.com/c8o1oBgHxDwU/?ref=app
14th Jun 2018, 7:38 PM
Tim Thuma
Tim Thuma - avatar
+ 2
I don't quite understand your problem but I would like to help you. Can you please explain it a bit more detailed?
14th Jun 2018, 3:06 PM
Tim Thuma
Tim Thuma - avatar
+ 2
So all you need is decrease or increase points when buttons are clicked?
14th Jun 2018, 4:53 PM
Tim Thuma
Tim Thuma - avatar
+ 1
vv this is a drawn version of what i mean vv https://imgur.com/a/9iRxKIO (the boxes on the right aren't important)
14th Jun 2018, 4:48 PM
error505
+ 1
basically yes
14th Jun 2018, 6:42 PM
error505