tk-toolkit Questions

3

Solved

I'm using Python 2.7.4 and new to Tkinter, and I'm stuck with the following code. I generated an event "test" and set the "data" option with a string, but an error occurred when retrieving it from ...
Externalism asked 4/5, 2013 at 2:19

6

Solved

Python embeddable zip comes without pip and Tkinter. It is easy to install pip with get-pip.py in the embeddable zip. How can we install Tkinter too (assuming we do not have an existing Python ins...
Subservience asked 8/6, 2016 at 18:29

5

I am developing an automated attendance system where when a student scans his RFID tag, his attendance is recorded while showing a welcoming message using a tkmessagebox pop-up. The user will not h...
Selfconsequence asked 14/5, 2015 at 10:57

3

Have a button to open a new window in my code, and have been trying to make the button open a new window called newest_release_window with two things in mind: If newest_release_window is not open,...
Melo asked 14/5, 2018 at 12:29

7

Below is my UI. I am trying to add a border for the frame. But I am not getting any information on how to add a border. How can I do it?
Philistine asked 5/6, 2018 at 2:44

3

Solved

I know you can get frame widgets to expand and fill all of the area available to them in their container via these commands: frameName.pack(fill = 'both', expand = True) What would do the same for...
Theresita asked 26/6, 2014 at 21:27

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

8

Solved

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

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

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

import tkinter as tk root = tk.Tk() root.state('zoomed') text1 = tk.Text(state=tk.DISABLED) scroll = tk.Scrollbar(root, command=text1.yview) text1.configure(yscrollcommand=scroll.set) text1.grid(r...
Allo asked 28/6, 2020 at 10:17

11

Solved

I'm trying to put a jpg image to a tkinter canvas. tkinter gives me this error: couldn't recognize data in image file I use the code from the documentation: canv = Canvas(root, width=80, heig...
Legaspi asked 17/11, 2017 at 18:31

3

Solved

Newbie programmer here. I am building a tk based desktop app and ran into an issue: I have a main window with several stuff in it including two tabs: global nBook nBook = ttk.Notebook(self, nam...
Sexual asked 23/4, 2018 at 8:16

2

I have a problem with the support of Dark Mode on MacOS in python Tkinter. I used python 3.6 with ActiveTlc 8.5 and the Dark Mode works fine, the window titlebar was dark, it's fine for me... but t...
Chaffee asked 22/10, 2018 at 12:46

1

Solved

It was brought to my attention that you can't restrict the view with e.g. scrollregion = (0,0,0,0) and the question was why is that ? Since the official documentation would indicate that this shoul...
Mccray asked 5/12, 2022 at 2:39

3

Solved

Inspired by this question, I would like to write my own resizing function for my root window. But I just noticed that my code shows some performance issues. If you resize it quickly you can see tha...
Lackluster asked 25/9, 2020 at 14:57

1

I have a Perl Tk GUI application that sometimes crashes after it exceeds 4GB of RAM usage. I can exceed 4GB of RAM usage in some cases using Perl Tk, and I have no issues exceeding 4GB when running...
Blevins asked 22/9, 2022 at 15:40

7

Solved

I have a general question about how to effectively load any kind of external package into R. I have found that many sources detailing this information are simply insufficient, but I will leave out ...
Ancillary asked 8/8, 2014 at 21:54

5

Solved

Since I can't horizontally scroll Treeview column due to what appears to be Tk/Tkinter limitation, I want to make it sticky so it is attached to the frame. The issue is that user can manually resi...
Laryngotomy asked 27/7, 2017 at 18:25

5

Solved

I work with linux on a servies. And I don't have the root privilege. I installed the python-3.2.3 locally to "/home/sam/install_sam". when I import the tkinter module. I get the following error: I...
Arthropod asked 14/8, 2012 at 8:13

3

Solved

I need some help in this. I want the user to login ... once he is logged in, only the menu corresponding to the module he is allowed to access will be enabled. So, I need to disable all the menus (...
Mickey asked 3/5, 2014 at 9:47

2

Solved

I have a checkbutton: from tkinter import * master = Tk() Checkbutton(master, text="Here...").grid(row=0, sticky=W) mainloop() Which looks like this: I tried to move the checkbutton to ...
Ignescent asked 28/2, 2022 at 8:52

2

I am trying to change the default background color for selected text in a Tkinter Text widget on Mac OS X when the widget does not have focus. The default unfocused select color is gray. After ma...
Strick asked 4/3, 2012 at 3:42

3

I know a recipe for displaying an MxNx3 numpy array as an RGB image via Tkinter, but my recipe makes several copies of the array in the process: a = np.random.randint(low=255, size=(100, 100, 3), ...
Rozier asked 22/9, 2018 at 17:44

© 2022 - 2025 — McMap. All rights reserved.