1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-23 12:20:30 +03:00

UI: Make a frame to hold each plugin's UI

NB: Currently breaks some core/internal plugin code, due to use of
`parent.children` and the like.  That will get addressed in subsequent
commits.
This commit is contained in:
Athanasius 2022-12-31 16:16:52 +00:00
parent 0705d56bb4
commit ce1303e9e6
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -562,7 +562,12 @@ class AppWindow(object):
plugin_no = 0
for plugin in plug.PLUGINS:
appitem = plugin.get_app(frame)
# Per plugin frame
plugin_frame = tk.Frame(
frame,
name=f"plugin_{plugin_no + 1}"
)
appitem = plugin.get_app(plugin_frame)
if appitem:
plugin_no += 1
tk.Frame(
@ -576,6 +581,9 @@ class AppWindow(object):
else:
appitem.grid(columnspan=2, sticky=tk.EW)
else:
plugin_frame.destroy()
# LANG: Update button in main window
self.button = ttk.Button(
frame,