def ui():
'''Launch the UI
'''
if not os.path.exists(REPOSITORY_PATH):
result = mc.confirmDialog( title='Control Repository Not Found', message='Create a repository directory?',
button=['Create','Cancel'], defaultButton='Cancel', cancelButton='Cancel', dismissString='Cancel' )
if result != 'Create':
return None
os.mkdir(REPOSITORY_PATH)
win = ControlLibraryUI()
win.buildMainLayout()
win.finish()
评论列表
文章目录