def __init__(self, iface): QDialog.__init__(self) self.iface = iface self.setupUi(self) self.path = os.path.dirname( os.path.abspath(__file__)) + "/aequilibrae/" self.default_values = None self.parameter_values = None self.current_data = None self.error = False # Configures the text editor font = QFont() font.setFamily('Courier') font.setFixedPitch(True) font.setPointSize(12) lexer = QsciLexerYAML() lexer.setDefaultFont(font) self.text_box.setLexer(lexer) # Load the data self.load_original_data() self.load_defaults() # Connect all buttons self.but_validate.clicked.connect(self.validate_data) self.but_save.clicked.connect(self.save_new_parameters) self.but_defaults.clicked.connect(self.load_default_data) self.but_close.clicked.connect(self.exit_procedure)
def __init__( self, parent = None ): QsciLexerYAML.__init__( self, parent ) Lexer.__init__( self ) self.commentString = "#" return
def __init__(self,parent): QsciLexerYAML.__init__(self, parent) self.parent = parent self.plainFont = QFont() self.plainFont.setFamily(config.fontName()) self.plainFont.setFixedPitch(True) self.plainFont.setPointSize(config.fontSize()) self.boldFont = QFont(self.plainFont) self.boldFont.setBold(True) self.setFoldCompact(True)
def __init__(self, parent = None): """ Constructor @param parent parent widget of this lexer """ QsciLexerYAML.__init__(self, parent) Lexer.__init__(self) self.commentString = QString("#")
def defaultKeywords(self, kwSet): """ Public method to get the default keywords. @param kwSet number of the keyword set (integer) @return string giving the keywords (string) or None """ return QsciLexerYAML.keywords(self, kwSet)
dumpLexer( QsciLexerPython() ) dumpLexer( QsciLexerBash() ) dumpLexer( QsciLexerBatch() ) dumpLexer( QsciLexerCMake() ) dumpLexer( QsciLexerCPP() ) dumpLexer( QsciLexerCSharp() ) dumpLexer( QsciLexerCSS() ) dumpLexer( QsciLexerDiff() ) dumpLexer( QsciLexerD() ) dumpLexer( QsciLexerFortran77() ) dumpLexer( QsciLexerFortran() ) dumpLexer( QsciLexerHTML() ) dumpLexer( QsciLexerIDL() ) dumpLexer( QsciLexerJava() ) dumpLexer( QsciLexerJavaScript() ) dumpLexer( QsciLexerLua() ) dumpLexer( QsciLexerMakefile() ) dumpLexer( QsciLexerPascal() ) dumpLexer( QsciLexerPerl() ) dumpLexer( QsciLexerPostScript() ) dumpLexer( QsciLexerPOV() ) dumpLexer( QsciLexerProperties() ) dumpLexer( QsciLexerRuby() ) dumpLexer( QsciLexerSQL() ) dumpLexer( QsciLexerTCL() ) dumpLexer( QsciLexerTeX() ) dumpLexer( QsciLexerVHDL() ) dumpLexer( QsciLexerXML() ) dumpLexer( QsciLexerYAML() )
def defaultEolFill(self, ix): for i in self.styles: if i.style() == ix: return i.eolFill() return QsciLexerYAML.defaultEolFill(self, ix)
def defaultPaper(self, ix): for i in self.styles: if i.style() == ix: return i.paper() return QsciLexerYAML.defaultPaper(self, ix)
def defaultFont(self, ix): for i in self.styles: if i.style() == ix: return i.font() return QsciLexerYAML.defaultFont(self, ix)
def defaultColor(self, ix): for i in self.styles: if i.style() == ix: return i.color() return QsciLexerYAML.defaultColor(self, ix)