Fixed program list
Program list always listed the programs of the last avaliable Wallaby.
This commit is contained in:
parent
0c5f942a21
commit
625902a763
1 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,6 @@ class Fl0wClient(Client):
|
||||||
handler.fl0w.controller_menu.clear()
|
handler.fl0w.controller_menu.clear()
|
||||||
for id_ in data:
|
for id_ in data:
|
||||||
action_menu = Menu()
|
action_menu = Menu()
|
||||||
print(id(action_menu))
|
|
||||||
action_menu.id_ = id_
|
action_menu.id_ = id_
|
||||||
action_menu += Entry("Programs",
|
action_menu += Entry("Programs",
|
||||||
"Lists all executable programs on the controller.",
|
"Lists all executable programs on the controller.",
|
||||||
|
@ -83,9 +82,9 @@ class Fl0wClient(Client):
|
||||||
handler, id_))
|
handler, id_))
|
||||||
action_menu += Entry("Set Name",
|
action_menu += Entry("Set Name",
|
||||||
"Sets the hostname of the selected controller",
|
"Sets the hostname of the selected controller",
|
||||||
action=lambda: Input("New Hostname:", initial_text=data[id_]["name"],
|
action=partial(lambda handler, id_: Input("New Hostname:", initial_text=data[id_]["name"],
|
||||||
on_done=lambda hostname: handler.pipe({"set" : hostname},
|
on_done=lambda hostname: handler.pipe(
|
||||||
"hostname", id_)).invoke(handler.fl0w.window))
|
{"set" : hostname}, "hostname", id_)).invoke(handler.fl0w.window), handler, id_))
|
||||||
action_menu += Entry("Processes",
|
action_menu += Entry("Processes",
|
||||||
"Lists processes currently running on controller.",
|
"Lists processes currently running on controller.",
|
||||||
action=partial(lambda handler: handler.pipe(None, "processes", id_),
|
action=partial(lambda handler: handler.pipe(None, "processes", id_),
|
||||||
|
@ -96,6 +95,7 @@ class Fl0wClient(Client):
|
||||||
kwargs={"selected_action_menu" : action_menu})
|
kwargs={"selected_action_menu" : action_menu})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def set_selected_action_menu(self, selected_action_menu):
|
def set_selected_action_menu(self, selected_action_menu):
|
||||||
self.selected_action_menu = selected_action_menu
|
self.selected_action_menu = selected_action_menu
|
||||||
|
|
||||||
|
|
Reference in a new issue