[chimera-dev] Adding a button to my extension...

Lars Kunert lkunert at mpi-sb.mpg.de
Mon Nov 24 03:10:56 PST 2003


Hi!

My application (extension) works fine when execute it within the built-in 
IDLE.

The python-code basically executes an external program (using "popen" ) 
and manages communication between the application and chimera through 
named pipes...
(The external Application uses Qt and all my trials to smoothly integrate 
it by use of a python wrapper have failed...)

Now I want to add an icon to chimera, which should call my extension in 
the same way I do it in the IDLE.

I did not manage to get the ToolbarButtonPackage working:


the related documentation seems to be completely outdated: 
""The example code files and ToolbarButton.tiff must be saved in a 
directory named ToolbarButtonExtension. To run the example, start chimera, 
bring up the extension manager (via the Manager... entry in the Extensions 
menu), select the Directory tab, and Add the directory above the 
ToolbarButtonExtension directory. A MainChain entry should appear under 
the Utilities extension category.""


Anyway, the ToolbarButtonExample works, but I can not adapt it to my 
application. When I add the path within the Favorites/Preferences/Tool - 
Tab chimera dies...

I include the set of python files I use:





Thanks for your help,

Lars
-------------- next part --------------
A non-text attachment was scrubbed...
Name: __init__.py
Type: application/octet-stream
Size: 114 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20031124/f274be70/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gui.py
Type: application/octet-stream
Size: 227 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20031124/f274be70/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChimeraExtension.py
Type: application/octet-stream
Size: 1682 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20031124/f274be70/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Browser.py
Type: application/octet-stream
Size: 7332 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20031124/f274be70/attachment-0003.obj>


More information about the Chimera-dev mailing list