Skip to content

Commit

Permalink
Updates graph order
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasj13 committed Mar 22, 2023
1 parent e342d77 commit 6d03243
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions topasgraphsim/src/classes/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def change_order(self, direction):
[params.grid_forget() for params in self.parameters]
[button.grid(row=i, padx=5, pady=5, sticky="w") for i, button in enumerate(self.plotbuttons)]
[params.grid(row=i, sticky="ew", padx=5, pady=5) for i, params in enumerate(self.parameters)]
self.update_plotlist()

elif direction == "down":
if index+1 < len(self.plotbuttons):
Expand All @@ -377,6 +378,7 @@ def change_order(self, direction):
[params.grid_forget() for params in self.parameters]
[button.grid(row=i, padx=5, pady=5, sticky="w") for i, button in enumerate(self.plotbuttons)]
[params.grid(row=i, sticky="ew", padx=5, pady=5) for i, params in enumerate(self.parameters)]
self.update_plotlist()

self.parent.update()

Expand Down

0 comments on commit 6d03243

Please sign in to comment.