#NEWLINE# def __init__( self , title = '' , message = '' ) : #NEWLINE# #INDENT# super ( ProjectConfigurationDialog , self ) . __init__ ( 'Project Configuration' , 'Here are the configuration options of the project.' , width = 500 ) #NEWLINE# self . configDict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . configDict [ self . KEY_PRJ_NAME ] = 'untitled' #NEWLINE# self . configDict [ self . KEY_ADDRESS ] = '0.0.0.0' #NEWLINE# self . configDict [ self . KEY_PORT ] = 8081 #NEWLINE# self . configDict [ self . KEY_MULTIPLE_INSTANCE ] = True #NEWLINE# self . configDict [ self . KEY_ENABLE_CACHE ] = True #NEWLINE# self . configDict [ self . KEY_START_BROWSER ] = True #NEWLINE# self . configDict [ self . KEY_RESOURCEPATH ] = './res/' #NEWLINE# self . add_field_with_label ( self . KEY_PRJ_NAME , 'Project Name' , gui . TextInput ( ) ) #NEWLINE# self . add_field_with_label ( self . KEY_ADDRESS , 'IP address' , gui . TextInput ( ) ) #NEWLINE# self . add_field_with_label ( self . KEY_PORT , 'Listen port' , gui . SpinBox ( 8082 , 1025 , 65535 ) ) #NEWLINE# self . add_field_with_label ( self . KEY_MULTIPLE_INSTANCE , 'Use single App instance for multiple users' , gui . CheckBox ( True ) ) #NEWLINE# self . add_field_with_label ( self . KEY_ENABLE_CACHE , 'Enable file caching' , gui . CheckBox ( True ) ) #NEWLINE# self . add_field_with_label ( self . KEY_START_BROWSER , 'Start browser automatically' , gui . CheckBox ( True ) ) #NEWLINE# self . add_field_with_label ( self . KEY_RESOURCEPATH , 'Additional resource path' , gui . TextInput ( ) ) #NEWLINE# self . from_dict_to_fields ( self . configDict )