gdesk.dialogs.base module

class gdesk.dialogs.base.ExecTimeout(dialog, timeout=None)

Bases: object

check_user_input_and_close()
exec_()
class gdesk.dialogs.base.LASTINPUTINFO

Bases: _ctypes.Structure

cbSize

Structure/Union member

dwTime

Structure/Union member

class gdesk.dialogs.base.MultiString(prompt=[], default=[], title='Input')

Bases: PySide2.QtWidgets.QDialog

finish()
initui(prompt, default, title='Input')
staticMetaObject = <PySide2.QtCore.QMetaObject object>
gdesk.dialogs.base.PLASTINPUTINFO

alias of gdesk.dialogs.base.LP_LASTINPUTINFO

class gdesk.dialogs.base.TopMessageBox

Bases: PySide2.QtWidgets.QWidget

staticMetaObject = <PySide2.QtCore.QMetaObject object>
gdesk.dialogs.base.getFile(filter='*.*', title='open', defaultFile=None, hideFilterDetails=False)
gdesk.dialogs.base.getFiles(filter='*.*', title='open', defaultFile=None, hideFilterDetails=False)
gdesk.dialogs.base.getMap(startPath=None, title='select a Directory')
gdesk.dialogs.base.getMultiString(prompt, default, title='Input', timeout=None)
gdesk.dialogs.base.getString(prompt, default='', title='Input', echo='Normal')

Show a popup-window to ask the user some textual input.

Makes use of QtWidgets.QInputDialog.getText; see https://srinikom.github.io/pyside-docs/PySide/QtGui/QInputDialog.html#PySide.QtGui.PySide.QtGui.QInputDialog.getText

Parameters
  • prompt (str) – The explanation that is visible just above the text input field.

  • default (str) – The text that is already present in the editable input field.

  • title (str) – The name of the pop-window (shown in its title bar).

  • echo (str) – ‘Normal’ for normal text entry; ‘Password’ for password entry. See http://doc.qt.io/qt-4.8/qlineedit.html#EchoMode-enum

gdesk.dialogs.base.getStringTimeout(prompt, default='', title='Input', echo='Normal', timeout=10000)
gdesk.dialogs.base.get_last_input_moment()
gdesk.dialogs.base.messageBox(message, title='', icon='none')
gdesk.dialogs.base.putFile(filter='*.*', title='save', defaultFile=None, defaultFilter='')
gdesk.dialogs.base.questionBox(question, title='')
gdesk.dialogs.base.selectFiles(filter='*.*', title='Select', defaultPath=None)
gdesk.dialogs.base.using_pyqt()
gdesk.dialogs.base.using_pyside()