Module pisiprogress
source code
Abstract way of user interaction
This file is part of Pisi.
In order to make it possible, to use core functionality code with any
kind of User Interface, the user interaction is being abstracted to an
interface, which has to be overwritten for a UI implementation.
The UI implementation is simply registered in the beginning, the core
functionality modules access it by using the Singleton implementation.
This way, there is no need for passing around a reference to the UI all
the time.
Pisi is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
Pisi is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License
along with Pisi. If not, see <http://www.gnu.org/licenses/>.
|
AbstractCallback
Each callback implementation (CLI or GUI) should overwrite this
interface
|
|
Progress
Handling of progress in terms of percentage
|
|
instance = None
|
|
__package__ = None
|
Singleton
This function may be called from anywhere within the program in order
to carry out user interaction.
|
Register a callback instance
- Parameters:
|