![]() translate ( "Dialog", "Selected Configuration File", None, QtGui. setObjectName ( "verticalLayout_2" ) self. addItem ( spacerItem ) #right side of dialog containing name of configuration file and parameter list self. setPalette ( notes_palette ) spacerItem = QtGui. setText ( "Notes: " ) #some style changes self. DefaultParamButton ) spacerItem5 = QtGui. translate ( "Dialog", "Default", None, QtGui. setObjectName ( "DefaultParamButton" ) self. translate ( "Dialog", "Set", None, QtGui. setObjectName ( "horizontalLayout_8" ) self. translate ( "Dialog", "Value", None, QtGui. translate ( "Dialog", "Available Parameters", None, QtGui. translate ( "Dialog", "Delete Node", None, QtGui. setObjectName ( "DeleteNodeButton" ) self. translate ( "Dialog", "Insert Node", None, QtGui. setObjectName ( "InsertNodeButton" ) self. setObjectName ( "horizontalLayout_7" ) self. translate ( "Dialog", " ? ", None, QtGui. nodebox.clientNodeBoxDocumentdisconnect Javadoc Remove the given connection from the network. translate ( "Dialog", "is active", None, QtGui. setObjectName ( "PriorityLineEdit" ) self. translate ( "Dialog", "Priority", None, QtGui. setObjectName ( "horizontalLayout_3" ) self. translate ( "Dialog", "Selected Node", None, QtGui. setObjectName ( "SelectedNodeTXT" ) self. UnicodeUTF8 )) #left side of dialog containing node selection, corresponding parameters and values self. ![]() translate ( "Dialog", "Configurator", None, QtGui. setAcceptDrops ( False ) #tSizeGripEnabled(True) Dialog. The whole arrangement is mainly controlled by horizontal and vertical layouts objects and a grid layout for the whole window. Here just the layout of the GUI is defined. def setupUi ( self, Dialog ): """ This function does all the graphical stuff The output is mainly modified from raw code created with QTDesigner. append ( pyspace_path ) import pySPACE #automatically generate all nodes. abspath ( _file_ )) pyspace_path = file_path if not pyspace_path in sys. todo:: There are still some things on the ToDo-list that I did not manage yet: - improve the help system/documentation (probably with search function) - to define "user defined" nodes (this is often used within the framework) - display default values for parameters - connect enter key with setParam Feel free to edit! """ import sys, yaml, copy from PyQt4 import QtCore, QtGui import os file_path = os. :Author: Sirko Straube :Created: 2010/06. They will appear at the beginning of the output file, which has the YAML format. It lists them and the corresponding parameters. """ Graphical user interface to create a complete processing flow This version uses PyQt4 and YAML, and was developed with Python 2.6.5 When started the GUI is checking for all existing nodes.
0 Comments
Leave a Reply. |