Пример #1
0
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
Пример #2
0
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
Пример #3
0
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
Пример #4
0
def init():

    # Override the base class
    leoPlugins.registerHandler("start1", onStart2)

    # Register the commands.
    leoPlugins.registerHandler(("open2", "new"), onCreate)

    g.plugin_signon(__name__)

    return True
Пример #5
0
def init():

    # Override the base class
    leoPlugins.registerHandler('start1', onStart2)

    # Register the commands.
    leoPlugins.registerHandler(('open2', 'new'), onCreate)

    g.plugin_signon(__name__)

    return True
Пример #6
0
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
Пример #7
0
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
Пример #8
0
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
Пример #9
0
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
Пример #10
0
def init():
    '''Return True if the plugin has loaded successfully.'''
    leoPlugins.registerHandler("after-auto", InitInClass)
    g.plugin_signon(__name__)
    return True
Пример #11
0
def init():
    '''Return True if the plugin has loaded successfully.'''
    leoPlugins.registerHandler(('open2', 'new'), onCreate)
    g.plugin_signon(__name__)
    return True
Пример #12
0
def init():
    leoPlugins.registerHandler("after-auto", InitInClass)
    g.plugin_signon(__name__)
    return True
Пример #13
0
def init():
    """Return True if the plugin has loaded successfully."""
    leoPlugins.registerHandler("after-create-leo-frame", maximize_window)
    g.plugin_signon(__name__)
    return True
Пример #14
0
def init():

    leoPlugins.registerHandler("after-create-leo-frame", maximize_window)
    g.plugin_signon(__name__)
    return True
Пример #15
0
def init():
    leoPlugins.registerHandler('after-create-leo-frame', onCreate)
    return True
Пример #16
0
def init():
    leoPlugins.registerHandler("after-auto", InitInClass)
    g.plugin_signon(__name__)
    return True
Пример #17
0
 def init():
     ok = True
     leoPlugins.registerHandler(('new','menu2'), CreateAscMenu)
     g.plugin_signon(__name__)
     return ok
Пример #18
0
def init():

    leoPlugins.registerHandler("after-create-leo-frame", maximize_window)
    g.plugin_signon(__name__)
    return True
Пример #19
0
def init():
    '''Return True if the plugin has loaded successfully.'''
    leoPlugins.registerHandler("after-create-leo-frame", maximize_window)
    g.plugin_signon(__name__)
    return True
Пример #20
0
def init():
    '''Return True if the plugin has loaded successfully.'''
    leoPlugins.registerHandler("after-auto", InitInClass)
    g.plugin_signon(__name__)
    return True
Пример #21
0
def init():
    '''Return True if the plugin has loaded successfully.'''
    leoPlugins.registerHandler(('new', 'menu2'), CreateAscMenu)
    g.plugin_signon(__name__)
    return True
Пример #22
0
 def init():
     ok = True
     leoPlugins.registerHandler(('new','menu2'), CreateAscMenu)
     g.plugin_signon(__name__)
     return ok
Пример #23
0
def init():
    '''Return True if the plugin has loaded successfully.'''
    leoPlugins.registerHandler(('new','menu2'), CreateAscMenu)
    g.plugin_signon(__name__)
    return True
Пример #24
0
def init ():
    leoPlugins.registerHandler('after-create-leo-frame', onCreate)
    return True