mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 07:47:14 +03:00
[Fix] Set Parent for messageboxes
This commit is contained in:
parent
778ccaeaaa
commit
fe7afad5e7
@ -105,7 +105,7 @@ def copy_sys_report(root: tk.Tk, report: str) -> None:
|
|||||||
"""Copy the system info to the keyboard."""
|
"""Copy the system info to the keyboard."""
|
||||||
root.clipboard_clear()
|
root.clipboard_clear()
|
||||||
root.clipboard_append(report)
|
root.clipboard_append(report)
|
||||||
messagebox.showinfo("System Profiler", "System Report copied to Clipboard")
|
messagebox.showinfo("System Profiler", "System Report copied to Clipboard", parent=root)
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
|
@ -2068,7 +2068,8 @@ def validate_providers():
|
|||||||
tk.messagebox.showinfo(
|
tk.messagebox.showinfo(
|
||||||
# LANG: Popup window title for Reset Providers
|
# LANG: Popup window title for Reset Providers
|
||||||
tr.tl('EDMC: Default Providers Reset'),
|
tr.tl('EDMC: Default Providers Reset'),
|
||||||
popup_text
|
popup_text,
|
||||||
|
parent=root
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -2237,7 +2238,8 @@ sys.path: {sys.path}'''
|
|||||||
detail = detail.replace('\\n', '\n')
|
detail = detail.replace('\\n', '\n')
|
||||||
detail = detail.replace('\\r', '\r')
|
detail = detail.replace('\\r', '\r')
|
||||||
msg = tk.messagebox.askyesno(
|
msg = tk.messagebox.askyesno(
|
||||||
title=title, message=message, detail=detail, icon=tkinter.messagebox.ERROR, type=tkinter.messagebox.YESNO
|
title=title, message=message, detail=detail, icon=tkinter.messagebox.ERROR, type=tkinter.messagebox.YESNO,
|
||||||
|
parent=root
|
||||||
)
|
)
|
||||||
if msg:
|
if msg:
|
||||||
webbrowser.open(
|
webbrowser.open(
|
||||||
@ -2271,7 +2273,8 @@ sys.path: {sys.path}'''
|
|||||||
tk.messagebox.showinfo(
|
tk.messagebox.showinfo(
|
||||||
# LANG: Popup window title for list of 'broken' plugins that failed to load
|
# LANG: Popup window title for list of 'broken' plugins that failed to load
|
||||||
tr.tl('EDMC: Broken Plugins'),
|
tr.tl('EDMC: Broken Plugins'),
|
||||||
popup_text
|
popup_text,
|
||||||
|
parent=root
|
||||||
)
|
)
|
||||||
|
|
||||||
def messagebox_not_py3():
|
def messagebox_not_py3():
|
||||||
@ -2301,7 +2304,8 @@ sys.path: {sys.path}'''
|
|||||||
tk.messagebox.showinfo(
|
tk.messagebox.showinfo(
|
||||||
# LANG: Popup window title for list of 'enabled' plugins that don't work with Python 3.x
|
# LANG: Popup window title for list of 'enabled' plugins that don't work with Python 3.x
|
||||||
tr.tl('EDMC: Plugins Without Python 3.x Support'),
|
tr.tl('EDMC: Plugins Without Python 3.x Support'),
|
||||||
popup_text
|
popup_text,
|
||||||
|
parent=root
|
||||||
)
|
)
|
||||||
config.set('plugins_not_py3_last', int(time()))
|
config.set('plugins_not_py3_last', int(time()))
|
||||||
|
|
||||||
|
@ -108,7 +108,8 @@ class EntryMenu(ttk.Entry):
|
|||||||
# Hijack existing translation, yes it doesn't exactly match here.
|
# Hijack existing translation, yes it doesn't exactly match here.
|
||||||
messagebox.showwarning(
|
messagebox.showwarning(
|
||||||
tr.tl('Error'), # LANG: Generic error prefix - following text is from Frontier auth service;
|
tr.tl('Error'), # LANG: Generic error prefix - following text is from Frontier auth service;
|
||||||
tr.tl('Cannot paste non-text content.') # LANG: Can't Paste Images or Files in Text
|
tr.tl('Cannot paste non-text content.'), # LANG: Can't Paste Images or Files in Text
|
||||||
|
parent=self.master
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
text = self.clipboard_get()
|
text = self.clipboard_get()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user