diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..54f1d00 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/releases diff --git a/pykrita/grid_generator.desktop b/pykrita/grid_generator.desktop index 330f5cc..1f34df0 100644 --- a/pykrita/grid_generator.desktop +++ b/pykrita/grid_generator.desktop @@ -2,8 +2,6 @@ Type=Service ServiceTypes=Krita/PythonPlugin X-Krita-Manual=Manual.html -Component=grid_generator -X-Python-2-Compatible=false X-Krita-Python-Extension=grid_generator Name=Grid Generator Comment=Generates square and hexagonal grids. diff --git a/pykrita/grid_generator/Manual.html b/pykrita/grid_generator/Manual.html new file mode 100644 index 0000000..72ca042 --- /dev/null +++ b/pykrita/grid_generator/Manual.html @@ -0,0 +1,17 @@ + + +Grid Generator Manual + + +

Grid Generator

+

This plugin generates square and hexagonal grids on vector layers.

+

Usage

+
    +
  1. Go to Tools > Scripts > Grid Generator...
  2. +
  3. Set the line thickness, width, and height.
  4. +
  5. Choose the grid type (Square or Hexagon).
  6. +
  7. Choose whether to generate on the current layer or a new layer.
  8. +
  9. Click Generate.
  10. +
+ + diff --git a/pykrita/grid_generator/__init__.py b/pykrita/grid_generator/__init__.py index d7a1774..5745c59 100644 --- a/pykrita/grid_generator/__init__.py +++ b/pykrita/grid_generator/__init__.py @@ -3,6 +3,4 @@ from krita import Krita from .grid_generator import GridGenerator # Create the plugin instance and add it to Krita -instance = Krita.instance() -extension = GridGenerator(instance) -instance.addExtension(extension) +Krita.instance().addExtension(GridGenerator(Krita.instance()))