def init(): '''Return True if the plugin has loaded successfully.''' if g.app.gui.guiName() != "qt": print('ftp.py plugin not loading because gui is not Qt') return False leoPlugins.registerHandler("after-create-leo-frame", onCreate) g.plugin_signon(__name__) return True
def init (): '''Return True if the plugin has loaded successfully.''' if g.app.gui.guiName() != "qt": print('ftp.py plugin not loading because gui is not Qt') return False else: leoPlugins.registerHandler("after-create-leo-frame", onCreate) g.plugin_signon(__name__) return True
def init (): if g.app.gui.guiName() != "qt": print('ftp.py plugin not loading because gui is not Qt') return False leoPlugins.registerHandler("after-create-leo-frame", onCreate) g.plugin_signon(__name__) return True
def init(): # Override the base class leoPlugins.registerHandler("start1", onStart2) # Register the commands. leoPlugins.registerHandler(("open2", "new"), onCreate) g.plugin_signon(__name__) return True
def init(): # Override the base class leoPlugins.registerHandler('start1', onStart2) # Register the commands. leoPlugins.registerHandler(('open2', 'new'), onCreate) g.plugin_signon(__name__) return True
def init (): '''Return True if the plugin has loaded successfully.''' if g.unitTesting: return False ok = testForZenity() if ok: leoPlugins.registerHandler('start2', onStart2) g.plugin_signon(__name__) else: g.trace('failed to load zenity') return ok
def init (): if g.unitTesting: return False ok = testForZenity() if ok: # g.trace('zenity ok') leoPlugins.registerHandler('start2', onStart2) g.plugin_signon(__name__) else: g.trace('failed to load zenity') return ok
def init(): '''Return True if the plugin has loaded successfully.''' leoPlugins.registerHandler("after-auto", InitInClass) g.plugin_signon(__name__) return True
def init(): '''Return True if the plugin has loaded successfully.''' leoPlugins.registerHandler(('open2', 'new'), onCreate) g.plugin_signon(__name__) return True
def init(): leoPlugins.registerHandler("after-auto", InitInClass) g.plugin_signon(__name__) return True
def init(): """Return True if the plugin has loaded successfully.""" leoPlugins.registerHandler("after-create-leo-frame", maximize_window) g.plugin_signon(__name__) return True
def init(): leoPlugins.registerHandler("after-create-leo-frame", maximize_window) g.plugin_signon(__name__) return True
def init(): leoPlugins.registerHandler('after-create-leo-frame', onCreate) return True
def init(): ok = True leoPlugins.registerHandler(('new','menu2'), CreateAscMenu) g.plugin_signon(__name__) return ok
def init(): '''Return True if the plugin has loaded successfully.''' leoPlugins.registerHandler("after-create-leo-frame", maximize_window) g.plugin_signon(__name__) return True
def init(): '''Return True if the plugin has loaded successfully.''' leoPlugins.registerHandler(('new', 'menu2'), CreateAscMenu) g.plugin_signon(__name__) return True
def init(): '''Return True if the plugin has loaded successfully.''' leoPlugins.registerHandler(('new','menu2'), CreateAscMenu) g.plugin_signon(__name__) return True
def init (): leoPlugins.registerHandler('after-create-leo-frame', onCreate) return True