2018-07-12 02:36:46

Hello all,

I'm having trouble following the NVDA developer guide (link here: https://www.nvaccess.org/files/nvda/doc … uide.html)

I'm having trouble with the section on creating global plugins.  .  When following the examples for how to create app modules, the code seems to work just fine.  However, when trying to follow how to create a global plugin, nothing seems to work.  the example being used is as follows:

--- start ---
# Version announcement plugin for NVDA
# Developer guide example 2

import globalPluginHandler
import ui
import versionInfo

class GlobalPlugin(globalPluginHandler.GlobalPlugin):

    def script_announceNVDAVersion(self, gesture):
        ui.message(versionInfo.version)

    __gestures={
        "kb:NVDA+shift+v": "announceNVDAVersion",
    }

--- end ---

When pressing NVDA+Shift+V, the current version is supposed to be announced, however, when I load the plugin/restart NVDA, nothing happens when I try it.  Am I doing something wrong, or is the example in the guide out of date (I just updated NVDA about a month ago).

any help would be greatly appreciated.

Signature

Thumbs up