PYME.ui.progress module¶
Defines a context manager for long running processes. It does the following:
changes the cursor to a timer
displays text to indicate what is running in the status bar (if window has one)
displays a dialog with a traceback if an error occurs
- class PYME.ui.progress.ComputationInProgress(window, short_description)¶
Bases:
object
Context manager for wrapping long-running tasks in the GUI - indicates that something is happening and display a dialog showing the error on failure
- class PYME.ui.progress.SlowComputation¶
Bases:
object
Pops up a dialog with a launches a computation in a separate thread
- class PYME.ui.progress.TracebackDialog(parent, description, exc_type, exc_val, exc_tb)¶
Bases:
mClass
- on_copy(event)¶
- class PYME.ui.progress.UserErrorDialog(parent, description, exc_type, exc_val, exc_tb)¶
Bases:
mClass
- PYME.ui.progress.get_package_versions()¶
- PYME.ui.progress.managed(fcn, window, description)¶
wrap a function in a context manager - used to wrap menu items
- PYME.ui.progress.show_traceback_dialog(parent, description, exc_type, exc_val, exc_tb)¶