Re: [gedit-list] First steps in making a plugin
- From: Paolo Borelli <pborelli katamail com>
- To: August Karlstrom <fusionfive comhem se>
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] First steps in making a plugin
- Date: Wed, 20 Jun 2007 22:08:30 +0200
Il giorno mer, 20/06/2007 alle 22.05 +0200, August Karlstrom ha scritto:
> Hi all,
>
> When I follow the plugin tutorial at
>
> http://live.gnome.org/Gedit/PythonPluginHowTo
>
> I get an error from python. Any clues?
>
>
> $ pwd
> /home/august/.gnome2/gedit/plugins
> $ cat test.py
> import gedit
>
> class ExamplePyPlugin(gedit.Plugin):
> def activate(self, window):
> pass
>
> def deactivate(self, window):
> pass
>
> def update_ui(self, window):
> pass
>
> $ python test.py
> Traceback (most recent call last):
> File "test.py", line 1, in <module>
> import gedit
> ImportError: No module named gedit
>
you cannot run a gedit plugin in a python console, the gedit module is
provided at runtime by gedit itself
>
> Regards,
>
> August
> _______________________________________________
> gedit-list mailing list
> gedit-list gnome org
> http://mail.gnome.org/mailman/listinfo/gedit-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]