예제 #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