tkinter Questions
3
Solved
I'm using the slider to update my visualization, but the command updateValue is sent everytime I move the slider thumb, even for intermediate values.
Instead I want to trigger it only when I relea...
3
Solved
I am trying to work out how to control resizing of the window containing a frame. In the code I have three buttons across the top that should to stay exactly where they are.
When I drag the windo...
Bondstone asked 19/5, 2018 at 7:7
5
Solved
Trying to set up a background for my tkinter window. I have a square background image, which fades to black around the edges, and then the main window has a black background. The image is placed ov...
Munshi asked 5/6, 2014 at 13:7
4
I am currently writing a GUI in python using Tkinter where the user is able to save the state of the GUI in their directory with the extension ".espace".
filename = tkFileDialog.asksaveasfilename(...
Edwyna asked 18/4, 2013 at 17:38
7
Solved
I know how to make a window fullscreen in the "main" display, but even when moving my app's window to a secondary display connected to my PC, when I call:
self.master.attributes('-fullscreen', Tru...
Denver asked 9/10, 2014 at 19:40
5
Solved
I am making a chess program and I want to be able to drag the pieces. In order to do this, I put the image of the piece on a Canvas so it can be dragged (I can also use a Label if I want). However,...
Arthromere asked 27/10, 2018 at 11:47
10
When I call
self.client = ThreadedClient()
in my Python program, I get the error
"RuntimeError: main thread is not in main loop"
I have already done some googling, but I am making an err...
Fullgrown asked 4/2, 2013 at 19:51
3
Solved
Is it possible to create a combobox that updates with the closest item in its list as you type into it?
For example:
A = ttk.Combobox()
A['values'] = ['Chris', 'Jane', 'Ben', 'Megan']
Then you...
Dys asked 6/9, 2012 at 10:35
4
Solved
How do I get the 'state' of a Tkinter Checkbutton? By 'state' I mean get whether or not it has a check mark in it or not.
Dreamy asked 21/11, 2010 at 7:44
4
Solved
I'm trying to figure out how to get the height of a tkInter window title bar but can't seem to find any info on how it's done.
I have tried using root.geometry() and it seems that root.geometry()...
12
Solved
I have this scroll-able frame (frame inside canvas actually).
import Tkinter as tk
class Scrollbarframe():
def __init__(self, parent,xsize,ysize,xcod,ycod):
def ScrollAll(event):
canvas1.config...
Northeasterly asked 28/6, 2013 at 1:33
2
Solved
How do I get a windows current size using Tkinter, or possibly with the python standard library?
7
Solved
Is there a way to sort the entries in a Tk Treeview by clicking the column? Surprisingly, I could not find any documentation/tutorial for this.
3
What I am looking for is a method or class that allows me to display a list of hexagons in a grid. Ideally I would then be able to use some form of set-method to change the color/hatching/border of...
Shelli asked 27/10, 2014 at 8:32
7
I understood that the Tk keypress and keyrelease events were supposed only to fire when the key was actually pressed or released?
However with the following simple code, if I hold down the "a&...
4
Solved
This is the code that i used to generate a simple text box and a button in tkinter.
What should be the parameters to have a better look of the frame and buttons?
root = Tk.Tk()
def submit():
...
Toliver asked 14/12, 2013 at 21:22
10
Solved
I am writing a Python program in TKinter on Ubuntu to import and print
the name of files from particular folder in Text widget.
It is just adding filenames to the previous filnames in the Text
widg...
Aalborg asked 15/1, 2015 at 15:15
3
Solved
I create a new Button object but did not specify the command option upon creation. Is there a way in Tkinter to change the command (onclick) function after the object has been created?
Archibold asked 16/9, 2008 at 0:48
6
Solved
I am making a Tic Tac Toe game in Python Tkinter but the buttons are rectangles, and I want them to all be 100x100 pixels in size. I tried using:
a1 = Button(root, text="", font="Helvetica 16 bold...
Exaggerative asked 18/9, 2017 at 17:16
2
Solved
In python-3.x with tkinter GUI, I developed a program with a regular simple window.
I want to show a markdown format string saved in a string called markdownText on program window:
markdownText='...
4
Solved
I just want the equivalent of closing and reopening my main program. I want to invoke it when a "new"-like option from a drop-down menu is clicked on. Something like calling root.destroy() and then...
3
i am using python/tkinter to write a IM software on XP. now i've got all the main functions done except i don't know how to highlight or change colour my IM item on taskbar on windows xp when windo...
2
Solved
Defining a font inside a function and in the main body of the script seems to behave differently, and I can't seem to figure out how it's supposed to work.
For example, the Label in this example e...
Thirzia asked 4/9, 2014 at 17:21
12
Solved
I've been working through the Tkinter chapters in Programming Python and encountered a problem where the foreground and background colours of a button will not change. I am working on a Mac OS X 10...
Girder asked 7/10, 2009 at 6:28
6
Solved
I was wondering how to change the label text after clicking a button. For example:
from Tkinter import *
import tkMessageBox
def onclick():
pass
root = Tk()
root.title("Pantai Hospital")
L1 ...
Photoluminescence asked 9/1, 2016 at 5:5
© 2022 - 2024 — McMap. All rights reserved.