Module ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num NameLoad Str Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str ListLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str ListLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str ListLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Global identifier Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Global identifier Expr Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list
N/A __future__ division N/A vistrails.core.modules.module_registry vistrails.core.modules.vistrails_module Module ModuleError ast literal_eval PyQt4 QtCore QtGui N/A vistrails.api QPythonCalc N/A N/A QtGui QWidget N/A N/A QPythonCalc is a widget used for specifying PythonCalc
    parameters and providing two buttons for compute and add that
    module to the pipeline.  __init__ N/A N/A self parent N/A None N/A N/A  init(parent: QWidget) -> None        
        We construct a simple GUI with edit boxes for 2 operands and a
        combo box for the operator. There are also 2 buttons: (1)
        perform the calculation and display the result, (2) create a
        PythonCalc module with the specified parameters and add to the
        current pipeline.

         N/A N/A N/A N/A QtGui QWidget __init__ self parent N/A N/A N/A self setWindowTitle PythonCalc GUI N/A gridLayout N/A N/A QtGui QGridLayout N/A N/A N/A self setLayout gridLayout N/A N/A N/A gridLayout addWidget N/A N/A QtGui QLabel value1 0 0 N/A N/A N/A gridLayout addWidget N/A N/A QtGui QLabel value2 1 0 N/A N/A N/A gridLayout addWidget N/A N/A QtGui QLabel op 2 0 N/A N/A N/A gridLayout addWidget N/A N/A QtGui QLabel result 3 0 N/A numberValidator N/A N/A QtGui QIntValidator self N/A N/A self value1Edit N/A N/A QtGui QLineEdit 0 N/A N/A self value2Edit N/A N/A QtGui QLineEdit 0 N/A N/A N/A N/A self value1Edit setValidator numberValidator N/A N/A N/A N/A self value2Edit setValidator numberValidator N/A N/A N/A gridLayout addWidget N/A self value1Edit 0 1 N/A N/A N/A gridLayout addWidget N/A self value2Edit 1 1 N/A N/A self opCombo N/A N/A QtGui QComboBox N/A N/A N/A N/A self opCombo addItems N/A + - * / N/A N/A N/A gridLayout addWidget N/A self opCombo 2 1 N/A N/A self resultLabel N/A N/A QtGui QLabel N/A N/A N/A gridLayout addWidget N/A self resultLabel 3 1 N/A N/A self calculateButton N/A N/A QtGui QPushButton Calculate N/A N/A N/A gridLayout addWidget N/A self calculateButton 4 0 N/A N/A N/A self connect N/A self calculateButton N/A N/A QtCore SIGNAL clicked() N/A self calculate N/A N/A self createModuleButton N/A N/A QtGui QPushButton Create Module N/A N/A N/A gridLayout addWidget N/A self createModuleButton 4 1 N/A N/A N/A self connect N/A self createModuleButton N/A N/A QtCore SIGNAL clicked() N/A self createModule N/A calculate N/A N/A self N/A N/A N/A  calculate() -> None        
        Perform the calculation based on value1, value2 and op,
        similar to the PythonCalc module, but through the GUI.

         N/A result N/A literal_eval N/A N/A N/A N/A N/A self value1Edit text N/A N/A N/A self opCombo currentText N/A N/A N/A self value2Edit text N/A N/A N/A N/A self resultLabel setText N/A str result N/A createModule N/A N/A self N/A N/A N/A  createModule() -> None
        Collect parameters, values and operator, and create a
        PythonCalc module to the current pipeline using the API
        provided in vistrails.api.

         N/A pythoncalc org.vistrails.vistrails.pythoncalc N/A module N/A N/A N/A vistrails api add_module 0 0 pythoncalc PythonCalc N/A N/A N/A N/A N/A N/A vistrails api get_current_controller update_function module value1 N/A N/A str N/A N/A N/A self value1Edit text N/A N/A N/A N/A N/A N/A vistrails api get_current_controller update_function module value2 N/A N/A str N/A N/A N/A self value2Edit text N/A N/A N/A N/A N/A N/A vistrails api get_current_controller update_function module op N/A N/A str N/A N/A N/A self opCombo currentText N/A N/A N/A N/A vistrails api switch_to_pipeline_view N/A N/A initialize N/A N/A N/A args keywords N/A N/A  initialize() -> None    
    Package-entry to initialize the package. We just create and show
    the main window, a QPythonCalc widget, here.
    
     N/A mainWindow N/A mainWindow N/A QPythonCalc N/A N/A N/A mainWindow show N/A menu_items N/A N/A N/A N/A N/A menu_items() -> tuple of (str,function)
    It returns a list of pairs containing text for the menu and a
    callback function that will be executed when that menu item is
    selected. This will add a 'Create Module' menu item under the
    Packages>PythonCalcQt menu. It has the same functionality as the
    'Create Module' button, which adds a PythonCalc with specified
    parameters module to the current pipeline.
    
     N/A lst N/A N/A mainWindow N/A N/A N/A lst append N/A Create Module N/A mainWindow createModule N/A N/A tuple lst N/A