Relative Content

Tag Archive for pythontkinter

Methods to raise a TTK frame in an OOP program

I am currently writing a program which right now shows a very simple login menu. I want to raise a new frame (which I have not wrote yet) when the user successfully logs on. To prototype the possible methods to do so, I decided to raise the menu frame for testing purposes. However no matter what I do there seems to be some kind of problem which I fail to understand and resolve. (Which might be due to my lack of understanding on OOP as a whole).

sv_ttk dark theme not working consistently

I have two methods that create and use tkinter windows with sv_ttk dark theme. One method, which consists of text box, scrollbar, and button, works perfectly. The second method, which consists of entries, labels, and a button, dark theme does not work at all.

loading multiple images at a time in a scroller

I’m new to Python, and basically, what I’m trying to make is an image scroller that shows 3 images at a time. I thought that putting them into multiple lists would make it work, but it doesn’t. I’ll try to clarify if it doesn’t make sense, but here is my code:

how to get column value from treeview by mouse selection

The code currently functions correctly by deleting multiple selected rows from the treeview. However, I require the column value associated with the record being deleted from the database. Specifically, I need the student name or any identifier from column A. This value will be utilized in the WHERE clause of the SQL statement (DELETE FROM table WHERE stdid = treeviewcolumnvalue). I would appreciate guidance on how to retrieve the treeview column value from the treeview
this is my code