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:
parent
0705d56bb4
commit
ce1303e9e6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user