コード例 #1
0
ファイル: mDDESupport.py プロジェクト: barry963/Robot_project
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
ファイル: mDDESupport.py プロジェクト: LaoMa3953/ulipad
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
ファイル: mDDESupport.py プロジェクト: barry963/Robot_project
def afterclosewindow(win):
    if win.app.ddeflag:
        DDE.stop()