display mobility player context for mobility configured nodes during runtime
This commit is contained in:
parent
9a55ff4ca5
commit
554028ad5c
1 changed files with 13 additions and 3 deletions
|
@ -77,9 +77,16 @@ class CanvasGraph(tk.Canvas):
|
|||
context.add_command(
|
||||
label="WLAN Config", command=canvas_node.show_wlan_config
|
||||
)
|
||||
context.add_command(
|
||||
label="Mobility Config", command=canvas_node.show_mobility_config
|
||||
)
|
||||
if self.master.core.is_runtime():
|
||||
if canvas_node.core_node.id in self.master.core.mobility_players:
|
||||
context.add_command(
|
||||
label="Mobility Player",
|
||||
command=canvas_node.show_mobility_player,
|
||||
)
|
||||
else:
|
||||
context.add_command(
|
||||
label="Mobility Config", command=canvas_node.show_mobility_config
|
||||
)
|
||||
if node.type == NodeType.EMANE:
|
||||
context.add_command(
|
||||
label="EMANE Config", command=canvas_node.show_emane_config
|
||||
|
@ -688,6 +695,9 @@ class CanvasNode:
|
|||
dialog = MobilityConfigDialog(self.app, self.app, self)
|
||||
dialog.show()
|
||||
|
||||
def show_mobility_player(self):
|
||||
self.canvas.context = None
|
||||
|
||||
def show_emane_config(self):
|
||||
self.canvas.context = None
|
||||
dialog = EmaneConfigDialog(self.app, self.app, self)
|
||||
|
|
Loading…
Add table
Reference in a new issue