Bundle Example: Add a Tool¶
This example describes how to create a ChimeraX bundle that defines a graphical interface. Graphical interfaces can either be based on HTML or on the Qt windowing toolkit.
ChimeraX’s graphical interface is written using the Qt windowing toolkit (version 5), accessed through a Python wrapping of the toolkit (the toolkit itself is written in C++). The Qt-based tool example demonstrates how to develop a graphical interface using the Qt toolkit’s capabilities.
For the sake of simplicity the Qt example does not create an interface for the commands developed earlier in the tutorial, but instead displays a text-input field which logs text typed in by the user, using the appropriate log command.
The HTML example takes the commands developed earlier in the tutorial and creates a graphical interface for them.
Bundle Example: Add a Command (previous topic)
Bundle Example: Add a Tool (current topic)
Bundle Example: Read a New File Format (next topic)