Skip to content
Advertisement

How to add only a bottom border to input fields in tkinter?

I am making a login software and I want the input fields to have only the bottom border like we have in CSS. Is there any way to do this in tkinter?

Advertisement

Answer

There are a few ways to do this. Arguably the simplest is to turn off the border, and then use place to add a separator. You can wrap that up in a class so that you can use it just like a normal entry.

Here’s a simple example:

JavaScript

screenshot

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement