Open stzanos95 opened 1 year ago
Thats a big throwback. I had the same problem and it shucks!
edit: i found a way to do it but it still not confortable. creating a funtion that takes two list, one of the names of the widgets and the other list being something like this widgets_default_name = [wname.winfo_name() for wname in widgets], then zip both list created in the same order. so when you call a widget name, it is going to return the name you did set manually. this works because tkinter asigne a unique name to each widget, even for tkinter widget. it will be something like this !ctklabel, !ctklabel2... and so on.
Out of curiosity why can't you just use self.checkbox.get()
Hi everyone, Merry Christmas!
Big fan of CTK but it seems to me that you cannot name widgets using the 'name' keyword argument with CustomTkinter just like in Tkinter. This makes it impossible to use for large complex projects that require naming conventions or mappings across widgets. I'm trying to receive the checkbool from a
ctk.CTkCheckbox
by using thenametowidget(<name>)
method:But I get the error:
Is this supported in another way with another key? I cannot seem to get around this.
Cheers