window

Can the auto-placement of tkinter windows be turned off?

Can the auto-placement of tkinter windows be turned off? Question: I have this very basic code from tkinter import * class GUI(Tk): def __init__(self): super().__init__() self.geometry(‘600×400’) Button(self, text="Show new window", command=self.show_window).pack() def show_window(self): smallwin = display() class display(Toplevel): def __init__(self): super().__init__() self.geometry(‘300×300+30+30’) self.attributes(‘-topmost’,True) root = GUI() root.mainloop() When you click on the button, a child …

Total answers: 2

Python tkinter: Open only one instance at a time of secodary window from primary window

Python tkinter: Open only one instance at a time of secodary window from primary window Question: There are two windows PRIMARY and SECONDARY, I want to open secondary window using a button widget on primary window. But problem is whenever I press that button secondary window is opened, doesn’t matter if a secondary window is …

Total answers: 3

Tkinter overridedirect (minimizing and windows task bar issues)

Tkinter overridedirect (minimizing and windows task bar issues) Question: What I’m trying to achieve is a Tkinter window, using overridedirect, that show up in your taskbar. You can minimize it like a normal window, and bring it back up like a normal window. The problem that I’m having right now is that I’ve achieved adding …

Total answers: 2

Close all variable explorer windows in Spyder

Close all variable explorer windows in Spyder Question: Does anyone know of a quick way to close all open variable explorer windows in Spyder? (i.e. the windows that open when you click on a variable). In Matlab, you can close all pop-up windows with close all. Does anything like that exist for Spyder? Asked By: …

Total answers: 2

Tkinter window at the bottom all the time

Tkinter window at the bottom all the time Question: I already know tkinter.Tk().attributes(“-topmost”, True) which makes the window stay on top all the time. But is there some way to make the window stay at the bottom all the time? I mean something like tkinter.Tk().attributes(“-bottommost”, True) or something like that. Asked By: Jakub Bláha || …

Total answers: 3

Custom Titlebar with frame in PyQt5

Custom Titlebar with frame in PyQt5 Question: I’m working on an opensource markdown supported minimal note taking application for Windows/Linux. I’m trying to remove the title bar and add my own buttons. I want something like, a title bar with only two custom buttons as shown in the figure Currently I have this: I’ve tried …

Total answers: 4

Amazon Virtual Desktop: python script unable to fetch Clipboard : Access denied

Amazon Virtual Desktop: python script unable to fetch Clipboard : Access denied Question: Amazon Virtual Desktop, Python Script doing good stuff But unable to access data from clipboard We have no access for C Drive and available D drive for users data Trying the following snippet :- import win32clipboard # get clipboard data win32clipboard.OpenClipboard() data …

Total answers: 1

Tkinter .pack() window not showing?

Tkinter .pack() window not showing? Question: I’ve been working on a simple program that make a button output something. But when i run it, this (I got this from the internet btw) does not show up. Is somethoing wrong with the code or something? Please help me so the window above can appear 🙂 Code: …

Total answers: 2