Skip to content

Tag: tkinter

How to make a shape a button in Tkinter

Is there a way to make a shape a button in a tkinter canvas? Or, to put it simply, is there a way to figure out if the user clicked the rectangle drawn above? Answer I don’t know how to see if someone clicks the rectangle but you could have the color change if a cursor hovers over it… I’m

How to add a console to a tkinter window

I want a way to add a console to a tkinter window or redirect the output of the eval or exec functions to the maybe a uneditable text widget in tkinter. Also I want it so the code does not have to be saved first to get executed, I want it to be executed nevertheless. I have already viewed a

How to calculate total column using python

I am creating an inventory system in Python. Treeview table total column need to calculate and display sum using python. I need to calculate final total of total column. I tried but I could the result what I tried so far I attached below. I got an error sum1 += tot TypeError: unsupported operand type(s) for +…