#====================================================================================================
#YJ_NameTool_UI
#
#Designer:YangJie
#Email:691633493@
#Version:1.0
#============================================================================================
from maya.cmds import*
from YJ_NameTool import*
import pickle
import os
import re
def CreatNameUI():
if window('YJ_Name_Related',q=1,ex=1):
deleteUI('YJ_Name_Related',window=1)
window('YJ_Name_Related')#Creat window
columnLayout('Main_CL',adjustableColumn=True)
text(p= 'Main_CL',label="New Name:(example:name@@@_suf)" ,align='center')
textField('yj_name_tx',p= 'Main_CL',cc='YJ_Name(1,"yj")',ec='YJ_Name(1,"yj")')
button( label='Name',p= 'Main_CL',c='YJ_Name(1,"yj")')
textField('yj_Suffix_tx',p= 'Main_CL',cc='YJ_Add_Suffix()',ec='YJ_Add_Suffix()')
button( label='Add_Suf',p= 'Main_CL',c='YJ_Add_Suffix("yj",[],0)')
textField('yj_Pre_tx',p= 'Main_CL',cc='YJ_Add_Prefix()',ec='YJ_Add_Prefix()')
button( label='Add_Prefix',p= 'Main_CL',c='YJ_Add_Prefix()')
showWindow('YJ_Name_Related')