From 042e32b81059fbb1a97d4020c40f959d0ab2af13 Mon Sep 17 00:00:00 2001 From: Michael Dryden Date: Thu, 1 May 2014 13:42:38 -0400 Subject: [PATCH] Added spinner to interface while experiment is running. --- dstatInterface/interface_test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dstatInterface/interface_test.py b/dstatInterface/interface_test.py index 15b6c94..c1a2a7f 100644 --- a/dstatInterface/interface_test.py +++ b/dstatInterface/interface_test.py @@ -185,6 +185,8 @@ class main: update = self.plotint_checkbox.get_active() updatelimit = int(self.updatelimit_adj.get_value()) + self.spinner.start() + try: if selection == 0: #CA potential = [int(r[0]) for r in self.chronoamp.model] @@ -268,12 +270,15 @@ class main: self.statusbar.push(self.error_context_id, "Experiment not yet implemented.") except ValueError: + self.spinner.stop() self.statusbar.push(self.error_context_id, "Experiment parameters must be integers.") except InputError as e: + self.spinner.stop() self.statusbar.push(self.error_context_id, e.msg) except SerialException: + self.spinner.stop() self.statusbar.push(self.error_context_id, "Could not establish serial connection.") self.databuffer.set_text("") @@ -284,6 +289,8 @@ class main: self.databuffer.insert_at_cursor(str(j)+ "\t") self.databuffer.insert_at_cursor("\n") + self.spinner.stop() + if __name__ == "__main__": main = main() gtk.main() \ No newline at end of file -- GitLab