|
def __init__(self):
try:
insertmenuitem( self.menuBar, 'File', 'command', 'save point menuitem',command=lambda s=self:openseledialog(s),index=6, label='Save Points...' )
except Exception as e:
print(e)
print(traceback.format_exc())
# print(self.menuBar.__componentInfo)
插件中self 指的应该就是PMGApp, self.root 就是Pymol 本身的Tk 窗口
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-9-27 06:09
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社