273 questions
0
votes
1
answer
39
views
I keep getting AttributeError: 'Toplevel' object has no attribute 'addtolist' when trying to call functions inside my toplevel class
I'm trying to use my function addtolist(self) within my TopSoftwareWindow() class and I keep getting
AttributeError: 'Toplevel' object has no attribute 'addtolist'
Here's the code for the specific ...
0
votes
1
answer
67
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....
1
vote
0
answers
22
views
how to override alt-escape key of windows in customtkinter toplevel
i am using customtkinter toplevel as a dropdown and want to override Alt-Escape behaviour of window for this top level how to? basically i dont want the window manager to cycle this toplevel like ...
0
votes
1
answer
56
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 ...
0
votes
2
answers
144
views
Why does Swift allow variable usage before declaration at the global scope but not within functions?
I'm encountering a strange behavior in Swift regarding the order of variable declarations. At the global scope, Swift seems to allow the use of a variable before its declaration, but within a function,...
1
vote
1
answer
841
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/...
-2
votes
1
answer
63
views
How can i pause my code until a toplevel window is destroyed?
So: I try to add Error-Masseges to my code. Each of those i want to display in a separate tkinter Toplevel window. So far so good.
But for this i need to pause my code after the Error-Window was ...
0
votes
2
answers
306
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
0
answers
48
views
Is it a tkinter problem? The progress bar is not shown when other GUI windows are open
Below is the general structure of my code. I have a main GUI window (w0), and some top level windows e.g. w3 which are used for image processing. Besides, I have also created a top level window as “...
0
votes
0
answers
53
views
Make toplevel not trigger FocusOut of parent widget (tkinter)
I am trying to make switching focus over to toplevel not trigger frame's event.
I tried setting toplevel's master to frame, but this didnt work.
Any ideas of how to do this?
TIA
Below is my code:
...
0
votes
1
answer
67
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 ...
19
votes
2
answers
2k
views
In Python is there a way to get the code object of top level code?
Is it possible to get the code object of top level code within a module? For example, if you have a python file like this:
myvar = 1
print('hello from top level')
def myfunction():
print('hello ...
0
votes
1
answer
59
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 ...
3
votes
2
answers
371
views
How do I create a simple popup video in Python and close it?
I have a simple pokemon-battle type project I'm doing for a college but I want to add more visuals to it by adding small 2 sec animations that plays everytime a button is clicked. I thought about ...
0
votes
1
answer
440
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(...