Relative Content

Tag Archive for pythonpython-3.xtkinter

How to drag and drop items across frames in tkinter?

I have a tkinter gui which displays some nodes in levels.
The levels are split into frames and on each frame the nodes are placed as per a level dictionary defined in the class Viewer.
I want to drag and drop this nodes from one level to another and as I do that the levels should adjust themselves.

For example, if a level has only one node and that node is moved up then that level will cease to exist practically and the below levels should move up to fill the level hierarchy logic.
However the drag and drop is not working as expected.
Below is my code :
Some notes about the code :

Isuues with pyinstaller (Module Not found)

Hi i have created a python (.PY) file which uses tkinter package inside it and excuted perfectly in spyder.
Now i am trying to convert it to .EXE file using pyinstaller package, once i convert tried to run and getting below error

How to disable Entry Widget when clicked outside of Entry Box

I’m making a GUI application in Python 3 with the Tkinter module. My app includes an Entry Widget that the user can type into. The only problem is that when the user is done typing and clicks outside of the Entry Box, the Entry Box doesn’t get disabled. I tried to do something with the state parameter of the Entry Widget but I didn’t know what to do with it.