--- author: '' category: '' date: 2009/03/01 10:43 description: '' link: '' priority: '' slug: BB780 tags: python, qt, rst2qhc, urssus title: Using assistant from PyQt type: text updated: 2009/03/01 10:43 url_type: '' --- The uRSSus doc is slowly growing, so I hooked assistant to the UI. Not difficult, but I have not seen it elsewhere. Here's how: Assume the "Handbook action" is called action_Handbook. Set window.assistant to None in __init__. .. code-block:: python def on_action_Handbook_triggered(self, i=None): if i==None: return if not self.assistant or \ not self.assistant.poll()==None: helpcoll=os.path.join(os.path.abspath(os.path.dirname(__file__)),\ 'help',\ 'out',\ 'collection.qhc') cmd="assistant -enableRemoteControl -collectionFile %s"%helpcoll self.assistant=subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE) self.assistant.stdin.write("SetSource qthelp://urssus/doc/handbook.html\n") And that's it. Now I ned to figure out context help.