tk

SOLVED Tkinter and pulling a textbox value on button press

Tkinter and pulling a textbox value on button press Question: I used Visual TK as a generator for GUI for my app, but i have a problem. I want to pull the textbox values from one function into the button function. Also I want to update a label from within the button function also. I …

Total answers: 1

How to set focus with multiple class instances for key binding python tkinter

How to set focus with multiple class instances for key binding python tkinter Question: What am I doing wrong in python focus for binding? I’m trying to bind the button widget to keyboard enter and nothing happens, or the focus ends on the last instance of the class to be loaded. I added self.bind(‘<Return>’, lambda …

Total answers: 1

issue with for loop in tkinter

issue with for loop in tkinter Question: so im working on a small project in and im trying to get input from the user using the entry widget and then comparing and seeing if any of the words in the input matches one or more of the words inside a list , for some reason …

Total answers: 2

Tkinter – Floating Window – Resize

Tkinter – Floating Window – Resize Question: Inspired by this question, I would like to write my own resizing function for my root window. But I just noticed that my code shows some performance issues. If you resize it quickly you can see that the window doesn’t finds its height prompt as I wish, it …

Total answers: 3

How can i open a text file on a Notepad made in python?

How can i open a text file on a Notepad made in python? Question: I’m trying to add a function that allows me to open a text file on a notepad built in python but this error shows up TypeError: expected str, bytes or os.PathLike object, not list I’m actually really new to programming and …

Total answers: 3

TkMessageBox – No Module

TkMessageBox – No Module Question: import TkMessageBox When I import TkMessageBox it displays the messsge ‘ImportError: No module named ‘TkMessageBox’. As far as I know im using python 3.3.2 and Tk 8.5. Am I using the wrong version of python or importing it wrong ? Any answers would be extremely useful. Alternatively is there something …

Total answers: 5

Python embeddable zip: install Tkinter

Python embeddable zip: install Tkinter Question: Python embeddable zip comes without pip and Tkinter. It is easy to install pip with get-pip.py in the embeddable zip. How can we install Tkinter too (assuming we do not have an existing Python installation in the same machine)? Asked By: antonio || Source Answers: Assuming you are on …

Total answers: 3

tkinter Menu styling on Linux

tkinter Menu styling on Linux Question: On Linux I want to change the Menu background color and make the relief flat. I’ve figured out how to do this but when the mouse hovers over the menu, the old background color with embossed relief appear. from tkinter import * from tkinter.ttk import * root = Tk() …

Total answers: 2