[PyMOL] Custom menus and shortcuts?

2012-10-23 Thread Boris Kheyfets
Hello PyMOL users, Menus = Is there a way I can add custom menu in PyMOL? Ideally I'd like to be able to call both * pml scripts, as well as * full python pymol scrpts Shortcuts = Similarly -- is there a way I can bind exectution of given * pml script, or * full python pymol

Re: [PyMOL] Custom menus and shortcuts?

2012-10-23 Thread David Hall
http://pymolwiki.org/index.php/Set_Key http://pymolwiki.org/index.php/Extend is also useful. -David On Tuesday, October 23, 2012 at 6:02 AM, Boris Kheyfets wrote: Hello PyMOL users, Menus = Is there a way I can add custom menu in PyMOL? Ideally I'd like to be able to call

Re: [PyMOL] Custom menus and shortcuts?

2012-10-23 Thread Boris Kheyfets
Found a solution. Basically it is to add pmg_tk/startup/newmenu.py file with the following content: from Tkinter import * from pymol import cmd def __init__(self): self.menuBar.addmenu('NewMenu', 'Sample Menu') self.menuBar.addmenuitem('NewMenu', 'command',

Re: [PyMOL] Custom menus and shortcuts?

2012-10-23 Thread Jason Vertrees
Hi Boris, David Hall's suggestions are perfect. Let me offer one more. If you can put up with programming a little Python, check out pymol/modules/pymol/menu.py and pymol/modules/pymol/preset.py. In menu.py you could add a No W menu option (or similar) to the A Preset Cheers, -- Jason On

Re: [PyMOL] wire-mesh spheres?

2012-10-23 Thread Matthew Baumgartner
Hi, Is it now possible to have wire mesh cgo object spheres in pymol? I found this thread from a while ago (2004) but googleing, I didn't find anything more recent. The one sort of work around that I though of was to create pseudo-atoms and somehow modify their radius and then show them as