Tagged Questions
1
vote
1answer
11 views
tkinter root window isn't quite the right size
So I am creating a tkinter canvas, and I need to check for when the user changes the size of the window. The problem is, initially the window apparently isn't the size it's supposed to be. I have the ...
0
votes
0answers
18 views
Using Native Tkinter on mac, not X11 Tkinter
I have been using the native python and tkinter applications (python2.7) on Mac OSX 10.7
I recently installed anaconda for the incredible selection of mathematical packages, however, Tkinter now used ...
0
votes
2answers
15 views
tkinter - Expanding a Listbox inside a Notebook
As the title says, I'm trying to make a Listbox object occupy all space that is inside a Notebook pane.
Here is a screenshot of what I have so far:
What I want to do is to expand the Listbox to ...
0
votes
1answer
16 views
get multiple items chosen in a listbox and populate new list with the values, using Tkinter
I am trying to take the selection from a listbox and populate a new list with it, and it will be multiple items. I can't figure this out, here's what i have so far (and I need the actual strings in ...
0
votes
2answers
17 views
What is correct: widget.rowconfigure or widget.grid_rowconfigure?
When using grid geometry manager. Let's say you have:
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
root.rowconfigure(0, weight=1)
root.columnconfigure(0, weight=1)
ttk.Button(root, ...
0
votes
1answer
40 views
Changing List Entry Syntax
I have a program that creates a small GUI for a function. In particular, I have something like this:
def create_widgets(self):
self.entryLabel = Label(self, text="Please enter a list of ...
0
votes
1answer
22 views
Python Tkinter - TextBox1 Not defined
I am learning somethings about Python Tkinter, and I wrote this simple code:
from Tkinter import *
import tkMessageBox
def print_it(msg):
Text1.insert(INSERT, str(msg))
top = Tk()
Entry1 ...
0
votes
0answers
33 views
How can I disable the mouse for a given amount of time?
I'm developing a rather big GUI with Tkinter for my cocktail-robot and now I'm trying to disable the mouse for a few seconds, so that no click on the screen will cause any event.
The reason why I ...
0
votes
1answer
15 views
Combobox-based map editor in tkinter
Heh, the title must sound dreadful and noobish
Anyway, I'm working on a simple web game that's basically a labyrinth. To make a map I have to manually write coordinates of walls, and I thought it'd ...
0
votes
1answer
12 views
XDOTOOL won't pass clicks to a particular window
Just having some problems with xdotool here - great program, but unfortunately hasn't been behaving.
from Tkinter import *
import os
class Ed:
def __init__(self,parent):
self.button = ...
2
votes
1answer
21 views
Twisted TCP server with a Tkinter GUI
recently I've been experimenting with Twisted (python library) in an attempt to make a TCP chat server/client. I had the server running nicely but when I tried to add a Tkinter-based GUI to the ...
0
votes
1answer
13 views
python3.3 tkinter ttk 'padding'
The padding option for widgets can be set like this:
frm = ttk.Frame(padding = "5 5 10 10")
I'd like to examine and change this during program execution, and have written this:
if frm['padding'] ...
-1
votes
1answer
32 views
Python Tkinter scrollbar in multiple tabs
I learned how to make a scrollable frame by embedding the frame in a canvas and then adding a scrollbar to it like this:
def __add_widget_features(self, feat_tab):
table_frame = ...
1
vote
1answer
325 views
Tkinter -> program freezing durint the execution of a function
I've created a little GUI for one of my scripts. All is working well.
When I click on one Button, it launches a big function that is parsing a lot of data from some websites.
But once I've clicked ...
2
votes
2answers
770 views
Tkinter Entry widget width
I noticed that the width argument for the Tkinter entry widget is in characters, not pixels. Is it possible to adjust the width in pixels?