OPSI.UI module¶
opsi python library - UI
This module is part of the desktop management solution opsi (open pc server integration) http://www.opsi.org
Copyright (C) 2010-2016 uib GmbH
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
@copyright: uib GmbH <info@uib.de> @author: Jan Schneider <j.schneider@uib.de> @author: Niko Wenselowski <n.wenselowski@uib.de> @license: GNU General Public License version 2
-
class
OPSI.UI.CopyDualProgressBox(ui, width=0, height=0, total=100, title=u'Title', text=u'')¶ Bases:
OPSI.UI.DualProgressBox
-
class
OPSI.UI.CopyProgressBox(ui, width=0, height=0, total=100, title=u'Title', text=u'')¶ Bases:
OPSI.UI.ProgressBox
-
class
OPSI.UI.DualProgressBox(ui, width=0, height=0, total=100, title=u'Title', text=u'')¶ Bases:
OPSI.UI.MessageBox
-
class
OPSI.UI.MessageBox(ui, width=0, height=0, title=u'Title', text=u'')¶ -
addText(text)¶
-
hide()¶
-
setText(text)¶
-
show(seconds=0)¶
-
-
class
OPSI.UI.ProgressBox(ui, width=0, height=0, total=100, title=u'Title', text=u'')¶ Bases:
OPSI.UI.MessageBox-
getState()¶
-
setState(state)¶
-
-
class
OPSI.UI.SnackCopyDualProgressBox(ui, width=0, height=0, total=100, title=u'Title', text=u'')¶ Bases:
OPSI.UI.SnackDualProgressBox-
messageChanged(subject, message)¶
-
-
class
OPSI.UI.SnackCopyProgressBox(ui, width=0, height=0, total=100, title=u'Title', text=u'')¶ Bases:
OPSI.UI.SnackProgressBox-
messageChanged(subject, message)¶
-
-
class
OPSI.UI.SnackDualProgressBox(ui, width=0, height=0, total=100, title=u'Title', text=u'')¶ Bases:
OPSI.UI.SnackMessageBox,OPSI.Util.Message.ProgressObserver-
endChanged(subject, end)¶
-
getState()¶
-
progressChanged(subject, state, percent, timeSpend, timeLeft, speed)¶
-
setCurrentProgressSubject(subject)¶
-
setCurrentState(state)¶
-
setOverallProgressSubject(subject)¶
-
setOverallState(state)¶
-
-
class
OPSI.UI.SnackMessageBox(ui, width=0, height=0, title=u'Title', text=u'')¶ Bases:
OPSI.UI.MessageBox,OPSI.Util.Message.MessageObserver-
addText(text)¶
-
hide()¶
-
messageChanged(subject, message)¶
-
setText(text)¶
-
show(seconds=0)¶
-
-
class
OPSI.UI.SnackProgressBox(ui, width=0, height=0, total=100, title=u'Title', text=u'')¶ Bases:
OPSI.UI.SnackMessageBox,OPSI.UI.ProgressBox,OPSI.Util.Message.ProgressObserver-
endChanged(subject, end)¶
-
getState()¶
-
progressChanged(subject, state, percent, timeSpend, timeLeft, speed)¶
-
setState(state)¶
-
-
class
OPSI.UI.SnackUI¶ Bases:
OPSI.UI.UI-
createCopyDualProgressBox(width=-1, height=-1, total=100, title=u'Copy progress', text=u'')¶
-
createCopyProgressBox(width=-1, height=-1, total=100, title=u'Copy progress', text=u'')¶
-
createDualProgressBox(width=-1, height=-1, total=100, title=u'Progress', text=u'')¶
-
createMessageBox(width=-1, height=-1, title=u'Text', text=u'')¶
-
createProgressBox(width=-1, height=-1, total=100, title=u'Progress', text=u'')¶
-
drawRootText(x=1, y=1, text=u'')¶
-
exit()¶
-
getHeight()¶
-
getMessageBox()¶
-
getScreen()¶
-
getSelection(entries, radio=False, width=-1, height=-1, title=u'Please select', text=u'', okLabel=u'OK', cancelLabel=u'Cancel')¶
-
getValue(width=-1, height=-1, title=u'Please type text', default=u'', password=False, text=u'', okLabel=u'OK', cancelLabel=u'Cancel')¶
-
getValues(entries, width=-1, height=-1, title=u'Please fill in', text=u'', okLabel=u'OK', cancelLabel=u'Cancel')¶
-
getWidth()¶
-
refresh()¶
-
showError(text, title=u'An error occurred', okLabel=u'OK', width=-1, height=-1, seconds=0)¶
-
showMessage(text, title=u'Message', okLabel=u'OK', width=-1, height=-1, seconds=0)¶
-
sigwinchHandler(signo, stackFrame)¶
-
yesno(text, title=u'Question', okLabel=u'OK', cancelLabel=u'Cancel', width=-1, height=-1)¶
-
-
class
OPSI.UI.UI¶ -
addConfidentialString(string)¶
-
createCopyDualProgressBox(width=-1, height=-1, total=100, title=u'Copy progress', text=u'')¶
-
createCopyProgressBox(width=-1, height=-1, total=100, title=u'Copy progress', text=u'')¶
-
createDualProgressBox(width=-1, height=-1, total=100, title=u'Progress', text=u'')¶
-
createMessageBox(width=-1, height=-1, title=u'Text', text=u'')¶
-
createProgressBox(width=-1, height=-1, total=100, title=u'Progress', text=u'')¶
-
drawRootText(x=1, y=1, text='')¶
-
exit()¶
-
getHeight()¶
-
getMessageBox()¶
-
getScreen()¶
-
getSelection(entries, radio=False, width=-1, height=-1, title=u'Please select', text=u'', okLabel=u'OK', cancelLabel=u'Cancel')¶
-
getValue(width=-1, height=-1, title=u'Please type text', default=u'', password=False, text=u'', okLabel=u'OK', cancelLabel='Cancel')¶
-
getValues(entries, width=-1, height=-1, title=u'Please fill in', text=u'', okLabel=u'OK', cancelLabel=u'Cancel')¶
-
getWidth()¶
-
refresh()¶
-
setConfidentialStrings(strings)¶
-
showError(text, title=u'An error occurred', okLabel=u'OK', width=-1, height=-1, seconds=0)¶
-
showMessage(text, title=u'Message', okLabel=u'OK', width=-1, height=-1, seconds=0)¶
-
yesno(text, title=u'Question', okLabel=u'OK', cancelLabel=u'Cancel', width=-1, height=-1)¶
-
-
OPSI.UI.UIFactory(type=u'')¶