Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/c/a/canard-HEAD/SQBLWidgets/SQBLutil.py   canard(Download)
                self.langXPathPrefix+"s:TextComponent/@xml:lang",namespaces=_namespaces
            ) +
            [str(s) for s in Canard_settings.getPref('defaultObjectLangauges')]
        ))
        # DAMN QT OBJECTS 
        for lang in langs:
            langName = isoLangCodes.iso639CodeToString(lang)                
            cw.addItem(langName,str(lang))
 
        langIndex = self.languages.findData(str(Canard_settings.getPref('displayLanguage')))
    def __init__(self,element,model,textType):
        SQBLWidget.__init__(self,element,model)
        self.textType = textType
        self.textLanguages = []
        self.activeLanguage = str(Canard_settings.getPref('displayLanguage'))
        for text in self.texts.xpath("./s:TextComponent",namespaces=_namespaces):
            self.textLanguages.append(text.get(_ns("xml","lang")))
        for lang in Canard_settings.getPref('defaultObjectLangauges'):
            if lang not in self.textLanguages:
                self.textLanguages.append(lang)
    def setPrefTab(self,index):
        pt = Canard_settings.getPref('PreferredTabs')
        if pt is None:
            pt = {}
        pt[type(self)] = index

src/c/a/canard-HEAD/SQBLWidgets/CanardPreferenceDialog.py   canard(Download)
    def setupDisplayLanguageCombo(self):
        for code,title in isoLangCodes.languageCodeListPairs():
            self.defaultDisplayLanguage.addItem(title,code)
        self.defaultDisplayLanguage.insertSeparator(11) # insert after top 10
        langIndex = self.defaultDisplayLanguage.findData(settings.getPref('displayLanguage'))
            item = QtGui.QListWidgetItem(title)
            item.setData(QtCore.Qt.UserRole,code)
            if code in settings.getPref('defaultObjectLangauges'):
                self.defaultNewLangs.addItem(item)
            else: