Commit a57bcc00 authored by André Anjos's avatar André Anjos 💬

[widgets] Selectively make windows transient while help dialog is up (does not work on Linux)

parent 3cc28651
Pipeline #26563 passed with stages
in 13 minutes and 20 seconds
......@@ -7,6 +7,7 @@ import tkinter
import tkinter.ttk
import warnings
import platform
import logging
logger = logging.getLogger(__name__)
......@@ -863,7 +864,10 @@ class Dialog(tkinter.Toplevel):
self.parent = parent
super(Dialog, self).__init__()
self.transient(self.parent)
if platform.system() == 'Darwin':
# required or the help dialog never is displayed alone
self.transient(self.parent)
# this is where the dialog will appear
self.geometry("%dx%d+%d+%d" % (shape[0], shape[1],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment