Пример #1
0
def app_init(app, filenames):
#    print 'ddeflag', app.ddeflag
    if app.ddeflag:
        x = common.get_config_file_obj()
        port = x.server.get('port', 50000)
        if DDE.senddata('\r\n'.join(filenames), port=port):
            sys.exit(0)
        else:
            DDE.run(port=port)
Пример #2
0
def app_init(app, filenames):
    #    print 'ddeflag', app.ddeflag
    if app.ddeflag:
        x = common.get_config_file_obj()
        port = x.server.get('port', 50009)
        if DDE.senddata('\r\n'.join(filenames), port=port):
            print """Found previous instance of UliPad and the files will be 
opened in it, current instance will be quit. If you have not 
seen the UliPad started, please change the DDE support port at 
config.ini with :

    [server]
    port=50001 #or other port number

If it's alreay exit, contact ulipad author to get help."""
            sys.exit(0)
        else:
            DDE.run(port=port)
Пример #3
0
def app_init(app, filenames):
#    print 'ddeflag', app.ddeflag
    if app.ddeflag:
        x = common.get_config_file_obj()
        port = x.server.get('port', 50009)
        if DDE.senddata('\r\n'.join(filenames), port=port):
            print """Found previous instance of UliPad and the files will be 
opened in it, current instance will be quit. If you have not 
seen the UliPad started, please change the DDE support port at 
config.ini with :

    [server]
    port=50001 #or other port number

If it's alreay exit, contact ulipad author to get help."""
            sys.exit(0)
        else:
            DDE.run(port=port)
Пример #4
0
def afterclosewindow(win):
    if win.app.ddeflag:
        DDE.stop()
Пример #5
0
def afterclosewindow(win):
    if win.app.ddeflag:
        DDE.stop()