1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-26 05:22:13 +03:00

fix ordering of plugin supplied app widgets

This commit is contained in:
Ian Norton 2016-01-08 11:48:28 +00:00 committed by Jonathan Harris
parent 827e08d1fe
commit b0f73b8390
2 changed files with 5 additions and 5 deletions

View File

@ -88,7 +88,6 @@ class AppWindow:
frame = ttk.Frame(self.w, name=appname.lower())
frame.grid(sticky=tk.NSEW)
rows = 4
plugin_items = list()
for plugname in plug.PLUGINS:
appitem = plug.get_plugin_app(plugname, frame)
@ -120,8 +119,9 @@ class AppWindow:
self.cmdr.grid(row=0, column=1, sticky=tk.EW)
self.system.grid(row=1, column=1, sticky=tk.EW)
self.station.grid(row=2, column=1, sticky=tk.EW)
self.button.grid(row=3, column=0, columnspan=2, sticky=tk.NSEW)
self.status.grid(row=4, column=0, columnspan=2, sticky=tk.EW)
self.button.grid(row=nextrow + 1, column=0, columnspan=2, sticky=tk.NSEW)
self.status.grid(row=nextrow + 2, column=0, columnspan=2, sticky=tk.EW)
for child in frame.winfo_children():
child.grid_configure(padx=5, pady=(platform=='darwin' and 3 or 2))

View File

@ -32,11 +32,11 @@ def plugin_prefs(parent):
def plugin_app(parent):
"""
Return a TK Frame for adding to the EDMC main window.
Return a TK Widget for adding to the EDMC main window.
:param parent:
:return:
"""
return None
return tk.Label(parent, text="---")
def system_changed(timestamp, system):