Tagged Questions
0
votes
2answers
16 views
Tkinter - text widget distorting column sizes
I am using the grid manager and have two frames side by side, and five columns with 1 button in each below the two frames in a second row, evenly spaced. All use "sticky" NSEW since I want them to ...
1
vote
2answers
20 views
Tkinter Frame Resize one axis
I have a tkinter frame that I want to automatically resize on the Y axis but remain a constant width as I add label widgets to it.
To keep the X-size constant I am using grid_propogate(False) but ...
0
votes
3answers
33 views
How to capture events on tkinter child widgets?
In the following block, clicking on a_frame triggers the event handler on_frame_click, but clicking on a_label which is a child of a_frame does not. Is there a way to force a_frame to trap and handle ...
0
votes
2answers
41 views
Get values from Entry widgets and create list of variables Tkinter
I have the following code which works and gives me each value. I can't seem to create a list of all the values once they are collected. I'm currently getting one value at a time..! I've tried the two ...
0
votes
1answer
25 views
Classes and imports in python with tkinter
Okay, my problem goes as follows.
I've been writing a small program in python (an adventure game) which has hitherto run via the console. I'm now working on giving it a full interface, which is ...
0
votes
1answer
37 views
Custom window using Perl TK or Python Tkinter
All windows made through Perl TK or Python Tkinter look like default Windows-styled window, with red cancel button on top right, preceded by maximize and minimize buttons, blue top bar, etc. Is it ...
0
votes
1answer
43 views
Useful packages to create online prediction tool with Python and R (example provided)
I am building a Cox PH statistical model to predict the probability of relapse for breast cancer patients. I would like to create an online interface for patients or doctors to use that would allow ...
0
votes
1answer
12 views
Using multiple frames in Tkinter is not giving the expected result
I have been learning Tkinter, i have written a small code where i want three frames to be part of an frame. Now when i execute this code line by line, then it works as expected. However on running it ...
0
votes
1answer
18 views
Python, Tkinter: Scrollbar on canvas with entry widgets
EDIT: Sorry, I should've searched more before I asked, because I've found a solution to my problem now. Link: Adding a scrollbar to a grid of widgets in Tkinter
I'm trying to add a canvas to a ...
0
votes
1answer
22 views
Callback and n Entry box widgets not functioning Tkinter
In the code below I need to return all values returned (but for each row separately) but I have tried lambda and failed and I'm not getting anywhere AGAIN.
I also have the callback definition where ...
0
votes
1answer
15 views
Changing textvariable for single OptionMenu in loop Tkinter
The following code shows my two option menus and the callback function 'VarMenu'. This all works all well and good except as I created several of the same option menus in the loop for each row. When ...
0
votes
1answer
43 views
Python Tkinter:When string with space inserted into Listbox, brackets appear
For some reason in the listbox there seems to be brackets around a string that ends with a space.
from Tkinter import *
def update_listbox():
for i in dic:
listbox.insert(END, (i, ...
0
votes
1answer
47 views
non blocking info dialog in Tkinter
I need a simple info box to display some status output, that I would alternatively dump to the console using print. The easiest possibility that I found is the following:
import Tkinter as tk
root = ...
0
votes
2answers
26 views
Determining row number of chosen OptionMenu but possibility to create within same variable - Tkinter
I have the following code where I ask the user to open a text which can include several rows within a section of data.
I then require for each row an OptionMenu to be created. My problem is that I ...
0
votes
1answer
54 views
How to update imshow in matplotlib without overwriting new color bar or subplot title?
Background: I am working an a data processing application and am trying to visualize 2D arrays with matplotlib embedded into a tkinter gui. I am trying to update the matplotlib figure by collecting ...