
python - Switch between two frames in tkinter? - Stack Overflow
v2.1.1 - Remove type-hinting for backwards compatibility with Python 3.4. v2.1 - Add type-hinting for `frame_class`. v2.0 - Remove extraneous `container` frame.
python - Tkinter: How to use threads to preventing main event …
Jan 30, 2017 · Regarding your recent update: If you had previously imported via from Queue import Queue it would have only taken changing that one line to switch from Python 2 to Python 3. Also, it would have been possible to use super() in Python 2 and it would have still worked in Python 3 because the old syntax is still accepted. –
Is there any Visual Studio-like tool for creating GUIs for Python?
Jul 12, 2013 · I love the ease of creating and programming a gui that visual studio provides. It is exactly what your girlfriend is talking about. Unfortunately, it doesn't appear to support Python yet for coding of events. I keep hoping Microsoft will recognize the popularity of Python but, for now, VS only supports five languages and Python isn't one of them.
How to select a directory and store the location using tkinter in …
I am creating a GUI with a browse button which I only want to return the path. I've been looking at solutions using code like below. Tkinter.Button(subframe, text = "Browse", command = self.
Quick and easy file dialog in Python? - Stack Overflow
Feb 17, 2012 · Tkinter is the easiest way if you don't want to have any other dependencies. To show only the dialog without any other GUI elements, you have to hide the root window using the withdraw method: import tkinter as tk from tkinter import filedialog root = tk.Tk() root.withdraw() file_path = filedialog.askopenfilename() Python 2 variant:
python - Display the output of the program on GUI with tkinter?
Feb 26, 2018 · Medanko: Much of the code in the errorwindow.py module is fairly old and was written for Python 2.x. In Python 3 the thread module was renamed to _thread, so just changing it to import _thread as thread might be good enough. You may also encounter other similar issues with it that need conversion to make it usable with Python 3.
python - How can I create a Drag and Drop interface ... - Stack …
Currently, I am working with Python 3.5 GUI development using tkinter module. I want to be able to drag an image from one place to another within the application. Does tkinter support drag and drop
python - How can I build a GUI to use inside a jupyter notebook ...
Mar 9, 2017 · The idea is to be able to build and use the GUI inside the notebook, so working with a long function that has a lot of parameters is more efficient than just typing the characters in the notebook. Obviously not specifics, but if someone can point some library, project, links or any resources that might help.
python - How to center a window on the screen in Tkinter
Jul 28, 2010 · The following works with Python 3.13.0 and Tkinter 8.6 as of November 2024: import tkinter as tk def scale_and_center_window(window: tk.Tk, pct: float = 0.75, multiple_of: int = 100) -> None: """ Scale and center the Tkinter window in the middle of the screen using the specified percentage, rounded to the specified multiple of value.
How do I create an input box with Python? - Stack Overflow
Jan 1, 2014 · I want to create an on-screen input box that a user can interact with. The user would see a window with an input field they can click with the mouse. The user could type or erase text in the field...