Starting an Extension on Startup
Bernhard Reiter
bernhard at intevation.de
Mon Nov 20 16:39:13 CET 2006
On Sunday 19 November 2006 11:24, George wrote:
> I'm writing an extension to Thuban, and what I want to be able to do is
> have the extension start working as soon as Thuban is loaded - similar
> to what I would have done with a startup script in Arcview 3. To do this
> I need a copy of the context object but there doesn't seem to be a way
> of getting this other than wait until it's passed as a result of the
> menu item being clicked.
>
> Am I correct in thinking this?
Currently an extension needs to be imported
from ~/.thuban/thubanstart.py anyway.
During this import __init__.py is executed where you can do as much as you
want.
Thuban in itself is event driven, so nothing happens unless the user
does something (e.g. like click on a menu button or so).
We discussed plans a while ago where extensions should just be loaded,
if they are in a special path, because the importing from thubanstart.py
is not the maximum of comforts. Right now this is not implemented.
What do you want to archieve, maybe this makes it easier to give
you some hints. :)
Best,
Bernhard
--
Managing Director - Owner, www.intevation.net (Free Software Company)
Germany Coordinator, fsfeurope.org (Non-Profit Org for Free Software)
www.kolab-konsortium.com (Email/Groupware Solution, Professional Service)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20061120/45fbeb6a/attachment.bin
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)