fix ordering of plugin supplied app widgets

This commit is contained in:
Ian Norton authored and Jonathan Harris committed 2016-01-09 18:27:02 +00:00
1 parent 827e08d1fe
commit b0f73b8390
2 files changed
+5 -5

No files matched your search

+3 -3
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))
+2 -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):