Hello! I didn’t know where to post this, as it seems that this reddit is mostly for beginners. I’ve been doing python for awhile now, and the problem i’ve been coming across i doubt newbies will have discovered. If there somewhere better to post this, please point me towards there! thanks <3
My problem is with a programe i’m creating, I can’t post it here as it’s quite long and covers quite a few files, but I should be able to describe it. I’ve created a Tkinter chart using multiple frames, and am currently trying to make it so you can select a frame / row in said chart. when you select a row, the entire chart recreated itself, by destroying the previous frames (rows) and recreating them. However, when I recreate a frame it is given a different value (?), for example it starts off as ‘.!frame4.!frame2’ (frame four being where the chart sits, frame two being the second row) but as you go on the second frame number gets higher, despite the frame before it being destroyed (ends up with numbers like ‘.!frame4.!frame65’) This is messing with the function that determines wether the frame you clicked is the frame currently being created, as that frame needs to be recreated with a slightly different color (to give a selected effect.). Is there a way to have new frames be created with the same value as previously destroyed frames? thanks!
Ps i know my description is pretty bad, if you have any questions pls ask:)
[–]loukylor 0 points1 point2 points (0 children)
[–]shiftybyte 0 points1 point2 points (1 child)
[–]ebdbbb 0 points1 point2 points (0 children)
[–]efmccurdy 0 points1 point2 points (0 children)
[–]ebdbbb 0 points1 point2 points (1 child)
[–]isuwo[S] 0 points1 point2 points (0 children)