def run(): """ Do not place the fake vitesse file at python path. Place it at 'external libraries' of eclipse is recommended """ names = [i.__name__ for i in modList] res, action = kcs_ui.string_select( 'fake vitesse generator', 'Please select the module you want to generate fake vitesse py.', 'Press option to generate for all modules.', names) if res == kcs_util.ok(): mod = modList[action - 1] des = kcs_ui.string_req('Where do you want to place the file?', r'C:\temp') if des[0] == kcs_util.ok(): # des = os.path.join(os.path.join(os.getcwd(), "FakeVitesse")) fname = des[1] + "\\" + mod.__name__ + ".py" GenPy(mod, fname) elif res == kcs_util.options(): des = kcs_ui.string_req('Where do you want to place the file?', r'C:\temp') if des[0] == kcs_util.ok(): for mod in modList: fname = des[1] + "\\" + mod.__name__ + ".py" GenPy(mod, fname)
def run(): """ Do not place the fake vitesse file at python path. Place it at 'external libraries' of eclipse is recommended """ names = [i.__name__ for i in modList] res, action = kcs_ui.string_select( "fake vitesse generator", "Please select the module you want to generate fake vitesse py.", "Press option to generate for all modules.", names, ) if res == kcs_util.ok(): mod = modList[action - 1] des = kcs_ui.string_req("Where do you want to place the file?", r"C:\temp") if des[0] == kcs_util.ok(): # des = os.path.join(os.path.join(os.getcwd(), "FakeVitesse")) fname = des[1] + "\\" + mod.__name__ + ".py" GenPy(mod, fname) elif res == kcs_util.options(): des = kcs_ui.string_req("Where do you want to place the file?", r"C:\temp") if des[0] == kcs_util.ok(): for mod in modList: fname = des[1] + "\\" + mod.__name__ + ".py" GenPy(mod, fname)
def PrintAll(): msg("ok():%s" % util.ok()) msg("cancel():%s" % util.cancel()) msg("quit():%s" % util.quit()) msg("options():%s" % util.options()) msg("operation_complete():%s" % util.operation_complete()) msg("yes():%s" % util.yes()) msg("no():%s" % util.no()) msg("all():%s" % util.all()) msg("undo():%s" % util.undo()) msg("reject():%s" % util.reject()) msg("exit_function():%s" % util.exit_function())