bioden.std — Standard Methods¶
Author: | Serrano Pereira |
---|---|
Release: | 0.4.0 |
Date: | February 18, 2015 |
Module Contents¶
- class bioden.std.ProgressDialogHandler(dialog=None)[source]¶
This class allows you to control the progress dialog from a separate thread.
- increase(action=None)[source]¶
Increase the progress bar’s fraction. Calling this method causes the progress bar to fill a portion of the bar. This method takes care of calculating the right fraction. If action is supplied, the progress dialog’s action string is set to action.
- set_action(text)[source]¶
Set the progress dialog’s action string to text. This action string is showed in italics below the progress bar.
- update(fraction, action=None)[source]¶
Set the progress dialog’s progress bar fraction to fraction. The value of fraction should be between 0.0 and 1.0. Optionally set the current action to action, a short string explaining the current action.
The “progress-dialog” configuration must be set to an instance of setlyze.gui.ProgressDialog for this to work. If no progress dialog is set, nothing will happen.