tkinter Questions

8

Solved

How to remove tkinter icon from title bar in it's window
Sanitarium asked 15/2, 2009 at 0:27

6

Solved

I have a program with a Tkinter window and I want to set an icon for the window. I use this code:window.iconbitmap(os.path.dirname(os.path.abspath(__file__))+"/icon.png") but the followin...
Hengel asked 30/4, 2015 at 16:37

3

Solved

I have been creating an Email program using Tkinter, in Python 3.3. On various sites I have been seeing that the Frame widget can get a different background using Frame.config(background="color"). ...
Budweis asked 19/5, 2013 at 20:23

3

Solved

This is my problem, I was building an interface for a program, but for needs of the bosses, the font must be larger. I have changed the font size of every widget without any problem, but with the t...
Towboat asked 6/5, 2016 at 9:21

6

Solved

Does anybody know a way to embed an icon in a Python script such that when I create my standalone executable (using pyinstaller) I don't need to include the .ico file? I know this is possible with ...
Areopagite asked 29/3, 2012 at 16:27

11

Solved

What is the recommended technique for interactively validating content in a tkinter Entry widget? I've read the posts about using validate=True and validatecommand=command, and it appears that the...
Loughlin asked 10/11, 2010 at 1:24

6

If I have a python script running (with full Tkinter GUI and everything) and I want to pass the live data it is gathering (stored internally in arrays and such) to another python script, what would...
Mckinzie asked 9/5, 2017 at 4:30

9

I am learning basic GUI in Python, and I came across a sample example to read file name from file explorer on Stack Overflow. from Tkinter import Tk from tkFileDialog import askopenfilename Tk().w...
Dinnerware asked 28/3, 2015 at 17:7

2

Solved

I am trying to install (through pyenv) Python-3.11.4 under CentOS-7. It installs but without GUI. I get the following error message: Installing Python-3.11.4... Traceback (most recent call last): ...
Inly asked 10/8, 2023 at 19:13

6

Can anyone explain how to add syntax highlighting to a Tkinter Text widget ? Every time the program finds a matching word, it would color that word to how I want. Such as : Color the word tkinter ...
Daytoday asked 26/7, 2016 at 16:13

8

Solved

How do you create a hyperlink using a Label in Tkinter? A quick search did not reveal how to do this. Instead there were only solutions to create a hyperlink in a Text widget.
Twentieth asked 5/5, 2014 at 22:10

9

Solved

I am trying to set an application icon (python3 / tkinter) like this: Interface() root.title("Quicklist Editor") root.iconbitmap('@/home/jacob/.icons/qle_icon.ico') root.resizable(0, 0) root.mainl...
Recur asked 24/6, 2012 at 10:18

5

Solved

I want to remove a frame from my interface when a specific button is clicked. This is the invoked callback function def removeMyself(self): del self However, it doesn't remove itself. I'm prob...
Salvia asked 18/10, 2010 at 18:38

6

Solved

The following code gives me this error "Token Error: EOF in multi-line statement". What is this error? How can I fix it? import easygui import time namegui = easygui.enterbox(msg='Enter your name:...
Dobla asked 25/10, 2011 at 5:42

3

I am writing a small program, which the intention to run a resize method, when the window size is changed. for this reason, I used toplevel.bind("<Configure>", self.resize). While this does w...
Expertise asked 10/5, 2020 at 12:53

4

I wanna update a matplotlib plot in a tkinter GUI. I tried to do so in the following code example. import matplotlib matplotlib.use('TkAgg') import numpy as np import matplotlib.pyplot as plt from...
Milurd asked 11/6, 2015 at 7:26

1

Solved

I want to call an asynchronous function from a tkinter button import asyncio import time import tkinter as tk async def gui(): root = tk.Tk() timer = tk.Button(root, text='Timer', command=lambda...
Driftwood asked 30/11, 2023 at 14:13

3

Solved

from Tkinter import * def printSomething(): print "Hey whatsup bro, i am doing something very interresting." root = Tk() button = Button(root, text="Print Me", command=printSomething) button.pa...
Avram asked 16/3, 2017 at 8:6

3

I am trying to set colors to rows in a tkinter treeview object, using tags and tag_configure. There has been an earlier discussion on coloring rows which is rather old and seems to work no longer ...
Standin asked 22/4, 2020 at 19:10

2

Solved

I would like to use the dialog boxes and message boxes without opening a tkinter window. Can someone teach me how to disable the window, or how to recreate the window, or show me a different solu...
Elocution asked 6/6, 2015 at 3:4

5

I'm trying to build my first GUI program and want to know who to change the label text color? for instance, changing it to 'red' import tkinter as tk root = tk.Tk() label = tk.Label(root, text=&q...
Leadin asked 10/10, 2020 at 4:58

3

Solved

I'm trying to position my window based on with width and height of the window. On Windows, the window size reported by wm_geometry, winfo_width and winfo_height is the size of the client area, i.e....
Baumann asked 20/10, 2015 at 8:18

2

Solved

Recently I have been working on a code and got stuck for days on this error. Basically the program calculates how many calories you have to eat everyday. I have to take input from an entry and I do...
Alysaalyse asked 6/1, 2019 at 20:40

6

As solve this problem? I'm running this code, window is created, but in console appears message on the error. I think problem the fact that is "after" loop not terminate but the window already dest...
Cracker asked 2/10, 2014 at 20:19

4

I am trying to following the answer to this question in an attempt to copy to clipboard however all solutions provided in the answer seem to have failed me. On macOS, I have successfully used pyper...
Jere asked 19/5, 2020 at 8:56

© 2022 - 2024 — McMap. All rights reserved.