[gedit-list] First steps in making a plugin



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


Regards,

August



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]