Skip to content

Commit

Permalink
fix type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
azazellochg committed Oct 25, 2024
1 parent 164789e commit ee8a4cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions perfectem/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ def get_cameras(self):
return self.cameras

def run(self,
scope: tk.StringVar,
camera: tk.StringVar,
test: tk.StringVar) -> None:
scopeVar: tk.StringVar,
cameraVar: tk.StringVar,
testVar: tk.StringVar) -> None:
""" Execute selected test. """
scope, camera, test = scope.get(), camera.get(), test.get()
scope, camera, test = scopeVar.get(), cameraVar.get(), testVar.get()
if not scope or not camera or not test:
self.show_message(msgtype="error", text="Please select a microscope and camera.")
return

func_name = None
func_name = ""
for item in self.tests.items():
if item[1] == test:
func_name = item[0]
Expand Down

0 comments on commit ee8a4cb

Please sign in to comment.