diff options
Diffstat (limited to 'AptUrl/UI.py')
-rw-r--r-- | AptUrl/UI.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/AptUrl/UI.py b/AptUrl/UI.py new file mode 100644 index 0000000..0fd502c --- /dev/null +++ b/AptUrl/UI.py @@ -0,0 +1,23 @@ + +from .Helpers import _, _n + +class AbstractUI(object): + # generic dialogs + def error(self, summary, msg): + return False + def yesNoQuestion(self, summary, msg, title, default='no'): + pass + def message(self, summary, msg): + return True + + def askInstallPackage(self): + pass + + # install/update progress + def doUpdate(self): + pass + def doInstall(self, apturl, extra_pkg_names=None): + pass + + # UI specific actions for enabling stuff + |