Package application :: Package dialogs :: Module Util
[hide private]
[frames] | no frames]

Module Util

source code

Classes [hide private]
  ItemValuesDialog
  MailErrorBaseDialog
  MailAccountErrorDialog
  MailAddressErrorDialog
  promptUserDialog
  checkboxUserDialog
  LogWindow
  DebugWindow
  CustomYesNoLabelDialog
  ProgressDialog
  ProgressPanel
  ResultsPanel
  ButtonPanel
  ResultsButtonPanel
Functions [hide private]
 
promptForItemValues(title, item, attrList)
Given an item and a list of attributes, display a modal dialog with a text field per attribute, with each field populated directly from the item's attribute values.
source code
 
promptUser(title, message, defaultValue='')
Prompt the user to enter in a string.
source code
 
promptUserAction(title, message, okayTitle=u'', cancelTitle=u'')
Prompt the user to choose between two actions, as defined by the two buttons in the dialog.
source code
 
mailAccountError(view, message, account) source code
 
mailAddressError() source code
 
displayLogWindow(logList) source code
 
ShowMessageDialog(message, caption, flags, resultsTable=<Locale: en_US>, textTable=<Locale: en_US>) source code
 
showFileDialog(parent, message, defaultDir, defaultFile, wildcard, style) source code
 
initLayout(container, sizer) source code
 
resizeLayout(container, sizer) source code
Function Details [hide private]

promptForItemValues(title, item, attrList)

source code 
Given an item and a list of attributes, display a modal dialog with a text field per attribute, with each field populated directly from the item's attribute values. If the user OK's the dialog, the new values are applied to the item's attributes.
Parameters:
  • frame (wx frame) - A wx parent frame
  • title (String) - The title string for the dialog
  • item (Item) - A chandler item
  • attrList - A list of dictionaries, each one having the following keys:
      "attr": an attribute name
      "label": a label to display for the field
      "password": an optional key, set to True if you want this field to
                  be displayed like a password (with asterisks)
    

promptUser(title, message, defaultValue='')

source code 
Prompt the user to enter in a string. Return None if cancel is hit.
Parameters:
  • title (String) - The title string for the dialog
  • message (String) - A message prompting the user for input
  • defaultValue (String) - A value to populate the text field with

promptUserAction(title, message, okayTitle=u'', cancelTitle=u'')

source code 
Prompt the user to choose between two actions, as defined by the two buttons in the dialog. No text entry is provided for.
Parameters:
  • title (String) - The title string for the dialog
  • message (String) - A message prompting the user for input
  • defaultValue (String) - A value to populate the text field with
  • okayTitle (String) - The title for the first button, selecting which will return the value wx.ID_OK
  • cancelTitle (String) - The title for the second button, selecting which will return the value wx.ID_CANCEL