示例#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
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 ():
    '''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 ():
    
    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