试用期员工
- UID
- 266
- 积分
- 239
- 金币
-
- 活跃
-
- 阅读权限
- 30
- 注册时间
- 2006-8-21
- 最后登录
- 1970-1-1
|
发表于 2007-7-18 18:46
|
显示全部楼层
来自: 中国江苏无锡
回复:如何制作Tribon的快捷图标?
import kcs_gui
import kcs_util
import kcs_ui
def post(*args):
if kcs_util.app_nesting() :
try:
kcs_gui.accelerator_add("NUMPAD0",0,33173)
kcs_gui.accelerator_add("NUMPAD1",0,33172)
kcs_gui.accelerator_add("NUMPAD2",0,33174)
kcs_gui.accelerator_add("NUMPAD3",0,33179)
kcs_gui.accelerator_add("NUMPAD4",0,33180)
kcs_gui.accelerator_add("NUMPAD5",0,33181)
kcs_gui.accelerator_add("NUMPAD6",0,33182)
kcs_gui.accelerator_add("NUMPAD7",0,33190)
kcs_gui.accelerator_add("NUMPAD8",0,33194)
kcs_gui.accelerator_add("NUMPAD9",0,34061)
kcs_gui.accelerator_add("ADD",0,33186)
kcs_gui.accelerator_add("SUBTRACT",0,33264)
except:
print "Failed adding accelerator key: ",kcs_gui.error
return kcs_util.trigger_ok()
保存为trig_draft_init.py运行在NESTING下为何不行? |
|