Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTKEntry widget cannot be edited when put inside of a standard Non-ttk Frame #2559

Open
InsertX2k opened this issue Aug 29, 2024 · 1 comment

Comments

@InsertX2k
Copy link

as the title says, also here is a portion of the program's code that has the bug:

# ..................................................
        self.rammappath_frame = Frame(self.show_wframe, bg=getCurrentAppearanceMode()[0])
        self.rammappath_frame.grid(column=0, row=3, sticky='w')
        

        self.rammappath_input = CTkEntry(self.rammappath_frame, width=860, height=10)
        self.rammappath_input.grid(column=0, row=1, sticky='w')
        self.rammappath_input_browsebtn = CTkButton(self.rammappath_frame, text="...", command=BrowseOne, width=37, height=5)
        self.rammappath_input_browsebtn.grid(column=2, row=1, sticky='w', padx=0)
        self.rammappath_defaultbtn = CTkButton(self.rammappath_frame, text="X", command=setDefaultRAMMapPath, width=37, height=5)
        self.rammappath_defaultbtn.grid(column=1, row=1, sticky='w', padx=5)
# ..................................................

The CTKEntry that has the problem is in this line: Temp_Cleaner GUI v6.9-stable source file, Line #2686

when the focus is set to the main frame holding this frame and all other similar frames to fix a certain bug with the interface, the CTKEntry widget is not editable by the user despite being in normal state.

I believe this is a bug, because I have tried to bind a function to that CTKEntry widget itself to call a function to set the focus to itself (self.rammappath_input.focus_set()) whenever it's clicked on by mouse but nothing seems to work.

Any opinions on this?

@dipeshSam
Copy link

CustomTkinter has its own rendering logic, and is not compatible with ttk (Themed Tkinter) at all. We can't use CustomTkinter in combination with ttk configured widgets.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants