Skip to content
Advertisement

Tag: tkinter

How can I get a row in Sqlite3 table with Tkinter Listbox widget?

I have Python program connected to Sqlite3 database with Tkinter on the frontend. My database table (subjectlist) consists of four columns: [id (unique interger), subject (text), serial (unique interger), is_active (boolean interger)]. Here is my program: Currently at runtime when I click item on listbox (which basically shows all subject column values that have is_active=1 on the same row) and

How do I call a separate python program using a button in tkinter?

I want to create a button in tkinter and when pressed, have that button call a different program into this program. (this is just an example) Say I have the one program that shows the button that says “Square root” and I have another program that takes a number such as: 4, using the input() function, and finds the square

How can I make program a bit cleaner?

I have this pretty ugly program (really cluttered) is there any way I could make it cleaner, less cluttered, etc. Thanks! P.S. (If you want to try to run this program prepare to be amazed.) Answer First of all, nice work with the drawing! Here is my suggestion: Things for you to try next: Making the elements size relative to

How can I get the value of a row in a column in SQLite 3 table with Tkinter Listbox widget?

I have Python program connected to SQLite 3 database with Tkinter on the frontend. My database table (subjectlist) consists of three columns: [id (unique interger), subject (text), serial (unique integer)]. Here is my program: Currently at runtime when I click item on listbox (witch basically shows all subject column values) and then press Tkinter button I get the subject I

tkinter: immediately selecting newly opened window

The code is simple. In tkinter I create a button which opens a new window. The difference in the pictures below might be hard to see but if you look closely you can see that in the first picture the root window is selected even though it’s behind the new opened window. In my actual program I use keybindings to

Advertisement