autodataming的个人博客分享 http://blog.sciencenet.cn/u/autodataming

博文

pymol插件开发 内在widget 组件的的关系

已有 1896 次阅读 2016-9-7 12:09 |系统分类:科研笔记

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 窗口



https://wap.sciencenet.cn/blog-950202-1001406.html

上一篇:pymol 中的各种object
下一篇:Pymol代码分析:cmd.save 的分析
收藏 IP: 140.206.57.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-30 08:40

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部