|
楼主 |
发表于 2010-5-24 22:05
|
显示全部楼层
来自: 中国浙江舟山
请高手们指点一下,这样的语句插在什么位置?
kcs_gui.accelerator_add("F1",0,32975)
最好插在原始语句中,这样可以有个参照
我插入的是这样的语句
import kcs_gui
import kcs_util
import basic_design_menu
#
# All user interface changes must be done in the post-trigger.
# When the pre-trigger fires, Windows has not yet created the
# necessary objects we depend on.
#
def post(*args):
#
# Add menu(s)
#
try:
if kcs_util.app_basic_design():
basic_design_menu.add(10)
except:
print "Failed adding menu(s): ",kcs_gui.error
return kcs_util.trigger_ok()
def pre(*args):
return kcs_util.trigger_ok()
try:
if kcs_util.app_drafting():
kcs_util.accelerator_add("F2",0,32975)
except:
print "there is something wrong",kcs_gui.error
但是TRIBON没有反应,请高手赐教问题出在哪里呢? |
|