275 questions
3
votes
1
answer
113
views
I cannot launch a TopLevel window after FileDialog execution
Why can I not show a TopLevel window after launching the FileDialog module?
I would like to show a window with a waiting message after executing FileDialog code.
If I create the TopLevel window before ...
1
vote
2
answers
285
views
How to create tkinter Toplevel that is initially hidden (withdrawn) without flashing?
Is it possible to create a Toplevel window in tkinter that is initially withdrawn without flashing. For example:
import tkinter as tk
root = tk.Tk()
def dlg():
top = tk.Toplevel(root)
top....
0
votes
1
answer
78
views
Multiple Toplevel windows using "after" for updates
I am developing a Python Tkinter app which can open multiple instances of a toplevel window.
The following extract tests if an instance of the toplevel class is running and if not, runs a new instance....
0
votes
1
answer
65
views
My Python Toplevel windows open in different positions on my screen as I open and close them
I have a button that opens a Toplevel window in a Python app. I open the window and the widget appears just fine, but if I close and reopen the Toplevel window with the same button, the window opens ...
1
vote
1
answer
2k
views
Vivado Error: [DRC MDRV-1] Multiple Driver Nets
I am running into an error on Vivado. I am trying to run implementation to program my Basys board, but I am running into the following error:
[DRC MDRV-1] Multiple Driver Nets: Net ScrlFSM/RLC2B/DER1/...
0
votes
2
answers
585
views
Top Level Widget Not appearing above the Main widget in customtkinter/tkinter
I am using a top level widget in customtkinter to show an error, but the top level widget goes below the main widget so the user doesn't end up noticing the error. How can I make the top level widget ...
0
votes
1
answer
75
views
TypeError: 'Toplevel' object is not callable
I made a function in python
import tkinter as tk
import re
from tkinter import filedialog
from tkinter import messagebox
import theFile.fileCentral as fc
import theData.workers as workerData
import ...
0
votes
1
answer
72
views
New window is offset from old window
I'm having trouble when closing and opening new windows in python. The new window is always offset from the old window. As I'm using a small display for the project I need the position of the new ...
0
votes
1
answer
821
views
In Tkinter, why shouldn't .mainloop() be used with Toplevel() windows, and what is the proper way of doing it?
Currently, whenever I create a new window in a Tkinter program, I use a function with Toplevel(), including .mainloop(), like this:
def MainWindow():
root = Tk()
#A button that calls SubWindow(...
1
vote
1
answer
161
views
Python tkinter toplevel opens with a blank window, then after some time, opens all the widgets and formats correctly
I am creating a toplevel:
#Loading screen
main = Tk()
loading = Toplevel()
loading.title("Co-worker")
loading.iconbitmap(getcwd()+"/icons/appIcons/windowIcon.ico")
loading....
0
votes
1
answer
39
views
Navigating between tkiner windows
I have a GUI application written in tkiner. I have a main welcome window that should take me to another window, and when it does I would like the welcome window to be Hidden, but still have the option ...
-1
votes
1
answer
434
views
Set a Tkinter window as a background for the others
I want to make a program with a setup but if the user is clicking in the fullscreen window while the second window is on the screen the second window goes in the back of the fullscreen window and the ...
0
votes
1
answer
112
views
have a toplevel window always appear at the same place
I have the following code where there's a rectangle drawn on a canvas. The rectangle is where I want it to be. I want the rectangle as a border for the toplevel window. How do I make the toplevel ...
0
votes
2
answers
371
views
I Have a Problem to Create a TopLevel in Python 3.11 in tkinter
I'm learning for my Tkinter Exam Tomorrow and I don't know why but when I'm trying to create a TopLevel in a new function, I'm getting this Error Message
Exception in Tkinter callback
Traceback (most ...
0
votes
2
answers
102
views
How do I make a line of code run after specifically closing a top level window in tkinter
I have this bit of code
def choosesize():
global textsize
window2 = Toplevel()
label = Label(window2,
text='Type the size you want for the text')
label.pack()
...
0
votes
1
answer
46
views
Toplevel not pack()-ing widgets
I'm working on a project that I hope will be used for flashcards, but I've encountered a problem with TopLevel(). When I run this code, it works exactly how I want it to, except when I click the ...
0
votes
1
answer
101
views
How do I execute a code within a tk.Toplevel()
I'm somewhat new to python (started in Nov.) and after complete my first "program" I'm trying to built the GUI using Tkinter. I want to put the program on a Toplevel that I've created and ...
-1
votes
2
answers
108
views
how a toplevel class can inherite from the main class tkinter opp inorder to access main class's attr
I want to access the main window attributes and change some of its labels and button's states in my toplevel class however it can not find them. So I'm not sure how to use opp approach in tkinter and ...
1
vote
1
answer
943
views
What are Top-Level Frames in web browsers?
I'm creating a Chrome Web Extension, which uses the chrome.webRequest API to intercept and alter HTTPS requests.
Within their documentation, Google talk about different request types. One of these ...
-1
votes
1
answer
80
views
Top level not defined in button command Tkinter
I added a top level in my tkinter GUI but I added a button which runs a deep learning model and is supposed to display the result in a separate label; however, when I run the code it says the top ...
-1
votes
1
answer
352
views
Cannot access Entry widgets I created on Top Level Window (Tkinter) [duplicate]
I'm working on a project in Tkinter.
Entries work perfectly fine for me, but as soon as I create an entry inside a top level window, I can neither insert any text, nor retrieve any input of the ...
0
votes
1
answer
1k
views
Binding closing of toplevel window
How can I create a binding in tkinter for when someone closes a toplevel window or if it is closed with toplevel1.destroy() or something similar. I am trying to make a small pop-up and when the user ...
0
votes
1
answer
615
views
Using grid() with TopLevel window not laying out widgets as expected
I'm trying to use the grid() layout manager to apply to a Toplevel window that successfully opens, but I can only get pack() to work. It seems that using the grid(row=x, column=y) isn't working - what ...
0
votes
1
answer
86
views
tkinter button image not loading (toplevel)
I am working with a resized image in a button and that button is in a toplevel widget set up as a root widget. The problem is that the image will not load; code:
def opendl():
global installpin2
# dl =...
0
votes
0
answers
140
views
Tkinter dialog's elements position
I am building custom Tkinter dialog window with Entry and Combobox. I am stuck with placing text and enter frames. Currently I am placing them manually. I am looking for the way to let tkinter do it ...