Skip to content

Tag: tkinter

Use opt/ cmd + Backspace in tkinter

I have a very simple notepad that is made out of the tk.text widget. The only thing lacking is OPT/ CMD + Backspace support on Mac (deleting lines and words). Any way i could add support for it? either through tkinter directly or though a selfmade function? EDIT: I also found out that navigating text using OP…

How to change the layout of a Tkinter Combobox?

To make the border disapear or simply change it’s color. I tried with highlighttickness or borderwidth but it doesn’t work. So I was told to try with the layouts, the thing is I don’t know how to change the border with the layouts On this pic the border is still visible on the combobox I wan…

Tkinter Events in for loop

I am currently working on an app with tkinter, which is basically PHPMyadmin. After the login I want to display all the databases in Labels and attach an Event to them. Well it kinda worked… Currently this code just prints out all the databases when clicked, but I want it to print just its own name. If …