Package schrodinger :: Package application :: Package bioluminate :: Module propfilter :: Class ValueSelectionDialog
[hide private]
[frames] | no frames]

Class ValueSelectionDialog

PyQt4.QtGui.QDialog --+
                      |
                     ValueSelectionDialog

A SFilteredListWidget that allows the user to select certain values of a property for the criterion.

Instance Methods [hide private]
 
__init__(self, parent, values, propmenu, value_edit)
Create a ValueSelectionDialog instance
 
accept(self)
Actions when the user presses the accept button.
 
reject(self)
Actions when the user presses the cancel button.
Method Details [hide private]

__init__(self, parent, values, propmenu, value_edit)
(Constructor)

 

Create a ValueSelectionDialog instance

Parameters:
  • parent (QWidget with setSelectedValues method) - The parent widget of this dialog. The accept method of this dialog calls the setSelectedValues method of the parent with the list of selected text in the QListWidget
  • values (list) - List of values to display in the QListWidget
  • propmenu (QComboBox or object with setCurrentIndex method) - The cancel method of this dialog sets propmenu.setCurrentIndex(0)
  • value_edit - value_edit is passed to parent.setSelectedValues in the accept method of the dialog

accept(self)

 

Actions when the user presses the accept button. Calls parent.setSelectedValues(values, value_edit) where values is a list of selected values and value_edit is passed to the __init__ method

reject(self)

 

Actions when the user presses the cancel button. Calls propmenu.setCurrentIndex(0) on the propmenu passed to the __init__ function.