|
import kcs_gui
import kcs_util
import basic_design_menu
#
def post(*args):
#
# Add menu(s)
#
try:
if kcs_util.app_nesting():
nesting.add(10)
except:
print "Failed adding menu(s): ",kcs_gui.error
#*******************************************EDIT_BY_NEPTUNE**********************************************************
if kcs_util.app_nesting():
nesting_toolbar = kcs_gui.toolbar_add("套料")
kcs_gui.toolbar_button_std_add(nesting_toolbar,1,33173,"C:\Tribon\M3\Vitesse\Icon\New_nest.ico","New_Nest","Nest job new..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,2,33172,"C:\Tribon\M3\Vitesse\Icon\Open_nest.ico","Open_Nest","Nest job open..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,3,33174,"C:\Tribon\M3\Vitesse\Icon\Save_nest.ico","Save_Nest","Nest job save..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,4,33175,"C:\Tribon\M3\Vitesse\Icon\Job_rename.ico","Job_Rename","Nest job rename..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,5,33181,"C:\Tribon\M3\Vitesse\Icon\Parts_trans.ico","Parts_Trans","Nesting parts transform..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,6,33190,"C:\Tribon\M3\Vitesse\Icon\Bridge.ico","Bridge","Nesting tools bridge..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,7,33191,"C:\Tribon\M3\Vitesse\Icon\Start_burn.ico","Start_Burn","Nesting tools start burn..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,8,33192,"C:\Tribon\M3\Vitesse\Icon\Start_mark.ico","Start_Mark","Nesting tools start mark..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,9,33195,"C:\Tribon\M3\Vitesse\Icon\Start_move.ico","Start_Move","Nesting tools start move..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,10,33196,"C:\Tribon\M3\Vitesse\Icon\Sequence.ico","sequence","Nesting tools start sequence..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,11,33234,"C:\Tribon\M3\Vitesse\Icon\Del_bridge.ico","Del_Bridge","Delete bridge..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,12,33235,"C:\Tribon\M3\Vitesse\Icon\Del_start.ico","Del_Start","Delete start..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,13,33236,"C:\Tribon\M3\Vitesse\Icon\Del_part.ico","Del_Part","Delete part..")
kcs_gui.toolbar_button_std_add(nesting_toolbar,14,33238,"C:\Tribon\M3\Vitesse\Icon\Del_sketch.ico","Del_Sketch","Delete sketch..")
kcs_gui.accelerator_add("F2",0,33071)
kcs_gui.accelerator_add("F3",0,33072)
kcs_gui.accelerator_add("F4",0,33074)
kcs_gui.accelerator_add("F5",0,33073)
kcs_gui.accelerator_add("NUMPAD0",0,33005)
except:
print "Failed adding menu(s): ",kcs_gui.error
#**************************************************************************************************************
return kcs_util.trigger_ok() |
|