pygui: updated emane config dialog to sort emane models consistently
This commit is contained in:
parent
50e3aadc6b
commit
13778e1d30
1 changed files with 3 additions and 2 deletions
|
@ -114,10 +114,11 @@ class EmaneConfigDialog(Dialog):
|
|||
self.node: Node = node
|
||||
self.radiovar: tk.IntVar = tk.IntVar()
|
||||
self.radiovar.set(1)
|
||||
|
||||
self.emane_models: List[str] = [
|
||||
x.split("_")[1] for x in self.app.core.emane_models
|
||||
x.split("_")[1] for x in sorted(self.app.core.emane_models)
|
||||
]
|
||||
model = self.node.emane.split("_")[1]
|
||||
model = self.emane_models[0]
|
||||
self.emane_model: tk.StringVar = tk.StringVar(value=model)
|
||||
self.emane_model_button: Optional[ttk.Button] = None
|
||||
self.enabled: bool = not self.app.core.is_runtime()
|
||||
|
|
Loading…
Reference in a new issue