more on plugins..

Hi. I realized that having plugins loaded from the __init__.py file could cause dependency problems, depending on what was being done in the plugin. So I moved the code to a separate file called 'plugins.py' (attached). This also allows you to decide whether you want to load the plugins in the first place. It's also a cleaner solution in general..

It's pretty rough code hacked together during wait time. I also wrote a quick 'print button' plugin (also attached) for proof of concept. The plugin only works with GTK right now, but it checks the backend being used, so it should be fairly simple to hack the other GUI/platform backends to use it.

I'm interested in what people think.. Even if it doesn't get included in the main source, it's easy enough to add in, that upgrades will no longer be a problem.

Abe

plugins.py (864 Bytes)

print_button.py (1.17 KB)