def getFormResults(self):
        """Reads form fields and sets self.config and self.converter.
        In setAndVerifyConfig() in app layer, the settings will be checked for
        inconsistencies.
        """
        logger.debug(util.funcName('begin'))

        ## Converter

        self.converter = ConverterSettings(self.userVars)
        self.converter.loadUserVars()  # for normForm
        self.converter.convName = self.dlgCtrls.txtConverterName.getText()
        self.converter.forward = (
            self.dlgCtrls.chkDirectionReverse.getState() == 0)
        self.converter.storeUserVars()

        ## Radio buttons and the corresponding combo box selection

        self.config = ConversionSettings()
        searchConfig = self.config.searchConfig  # shorthand name
        self.config.whichScope = dutil.whichSelected(
            self.dlgCtrls.radiosWhichScope)
        self.userVars.store('WhichScope', self.config.whichScope)
        if self.config.whichScope == 'Font':
            searchConfig.fontName = self.dlgCtrls.comboScopeFont.getText()
            searchConfig.fontType = dutil.whichSelected(
                self.dlgCtrls.radiosScopeFont)
            self.userVars.store('ScopeFontType', searchConfig.fontType)
        searchConfig.load_userVars(self.userVars)

        self.config.whichTarget = dutil.whichSelected(
            self.dlgCtrls.radiosWhichTarget)
        self.userVars.store('WhichTarget', self.config.whichTarget)

        ## Target font

        targetFontName = self.dlgCtrls.listTargetFont.getSelectedItem()
        if targetFontName == "(None)":
            targetFontName = None
        targetFontSize = FontSize()
        targetFontSize.loadCtrl(self.dlgCtrls.txtFontSize)
        if self.config.whichTarget == 'Font':
            self.userVars.store('TargetFontName', targetFontName)
            self.userVars.store('TargetFontSize', targetFontSize.getString())
        targetFontType = dutil.whichSelected(
            self.dlgCtrls.radiosTargetFont)
        self.userVars.store('TargetFontType', targetFontType)
        self.config.targetFont = styles.FontDefStruct(
            targetFontName, targetFontType, targetFontSize)

        self.config.askEach = (self.dlgCtrls.chkVerify.getState() == 1)

        ## Save selections for next time

        for combo in self.dlgCtrls.combos:
            self.userVars.store(combo.varname, combo.ctrl.getText())
        self.userVars.store('AskEachChange',
                            str(self.dlgCtrls.chkVerify.getState()))
        logger.debug(util.funcName('end'))
 def getFormResults(self):
     """Reads form fields and returns settings.
     raises exceptions.ChoiceProblem
     """
     logger.debug(util.funcName('begin'))
     settings = MkoxtSettings(self.userVars)
     settings.langname = self.txtLangName.getText()
     settings.outfile = self.txtOutfile.getText()
     settings.dict = self.fctlWordList.getText()
     settings.type = SCRIPT_TYPES[
         self.listboxScriptType.getSelectedItemPos()]
     settings.langtag = self.txtLangTag.getText()
     settings.word = self.txtWordFormingPunct.getText()
     settings.font = self.txtFont.getText()
     settings.affix = self.fctlAffix.getText()
     settings.normalize = dutil.whichSelected(self.radiosNormalize)
     settings.version = self.txtVersion.getText()
     settings.dicttype = self.listDictType.getSelectedItem()
     settings.publisher = self.txtPublisher.getText()
     settings.puburl = self.txtPublisherURL.getText()
     settings.storeUserVars()
     return settings
 def read(self):
     return dutil.whichSelected(self.radios)
 def update_change(self, styleChange):
     styleChange.fontType = dutil.whichSelected(self.radios)
     self.font_name_handler.update_change(styleChange)
 def store_results(self):
     self.whichScope = dutil.whichSelected(self.radios)
     self.app.userVars.store(self.USERVAR, str(self.whichScope))
     self._rename_label()