Re: [orca-list] A question for a traceback error message prewenting related



Hy Joanie,

For example following modified code is works perfect in _initGUIState function:
            try:

self.get_widget("showcursorComputerBrailleCheckButton").set_active( \
                prefs["showcursorComputerBraille"])
            except KeyError:

self.get_widget("showcursorComputerBrailleCheckButton").set_active(settings.showcursorComputerBraille)

This way problem handling if the proper setting not existing yet with the user user-settings.conf file is acceptable if need a GUI widget initialization with a setting related?

Attila



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]