Tagged Questions
5
votes
2answers
510 views
Expandable/Collapsible frame in python, tkinter
Does anyone know if there is already a widget/class to handle expanding/contracting a frame based on a toggled button (checkbutton) in tkinter/ttk?
This question stems from my attempt to clean up a ...
3
votes
1answer
471 views
Modify the default font in Python Tkinter
I'm working on a GUI in Python2.7, with Tkinter, and I have an annoying problem.
I would like to define the default font used by all the widgets, if possible in one line.
This line modify only the ...
3
votes
1answer
134 views
How to have windows automatically add an extension to a file? (Python, Tkinter)
Background
I am currently in the process of making a basic text editor in hopes of gaining a basic understanding of Tkinter. I want to make my own file format called .mydoc I have attempted to change ...
2
votes
1answer
4k views
“ImportError: No module named tkinter” when using Pmw
Here's my problem: I'm running the code in this example. I have Python 2.7 and 3 installed on my RaspberryPi but I have checked and double-checked, and I am running the code in 2.7. I've installed ...
2
votes
2answers
107 views
Tkinter: How to use threads to preventing main event loop from “freezing”
I have a small GUI test with a "Start" button and a Progress bar. The desired behavior is:
Click Start
Progressbar oscillates for 5 seconds
Progressbar stops
The observed behavior is the "Start" ...
2
votes
2answers
243 views
Why is tkinter not recognizing that this window is being resized?
When I try to detect that a window is resized with tkinter, it works most of the time. However, there is one exception; that is, when resizing it for the first time vertically and making the window ...
2
votes
2answers
66 views
Create numerous unique events
I am writing a program with a lot of buttons(over 100), and each one needs a unique result, but all of the results are similar, this is the code of the first button
box1= 'filepath to text file'
def ...
2
votes
1answer
190 views
How to open Tkinter programs nicely?
When I opened a Tkinter program, 3 things are opening:
My program
IDLE (shell)
Black screen (python command line)
How can I block second and third ones for a clean view? Thanks.
2
votes
1answer
27 views
Validation on Tkinter.Text widget?
What are my options for getting validation with the Tkinter.Text widget? I don't require Text's advanced functionality, just its multiline attribute. Unfortunately, it lacks both textvariable and ...
2
votes
1answer
121 views
Tkinter Canvas create_window()
I'm trying to use Tkinter Canvas (self._canvas) to create window using create_window function. The window field for that function is a Tkinter Frame (self._tableFrame). Can someone please help me out ...
2
votes
1answer
141 views
I can't display text over my tkinter image
I am trying to display text on top of my image but I cannot do do this, can anyone help please.
Code:
import Image and the graphics package Tkinter
import Tkinter
import Image, ImageTk
class ...
2
votes
2answers
363 views
How to place widgets into different frames in Tkinter, using OOP
Background
Hello everyone! I am currently working on a basic GUI text editor which can load and save text files. I want to use multiple frames for the toolbar and the textbox as I learned here. I am ...
2
votes
1answer
1k views
Importing tkinter in Python2.7 on Mac
I recently installed Python2.7 on MacOs 10.6.8. I'm having a problem importing tkinter. I keep gettig this 'no matching architecture in universal wrapper' message which means that the version of ...
2
votes
1answer
24 views
Why isn't my tkinter scrollbar working?
I have 3 tabs in a notebook widget, and I want to have a scrollable frame on the 3rd tab. I set up a canvas and a scrollbar and set all the commands for them to interact, but it's not working. What ...
2
votes
1answer
64 views
How to create transparent widgets using Tkinter?
I'm new to Python. I wanted to create an app which has an image as its background. But when I add a 'Label' over the image, I could see a white background to the label.
Do we have a solution to make ...