summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-05-15 17:43:51 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-05-15 17:43:51 +0200
commit824e812a44851ec1963d3347f588821477e9937c (patch)
treee678245fcf06da5ac8c5fc1a4d1ec8163062bca1 /doc
parentdc790188d63aa32984db739d9e08ce877b51534f (diff)
parent226f0d6a40a01cbcc9c7baffde647159fb784e40 (diff)
downloadportato-824e812a44851ec1963d3347f588821477e9937c.tar.gz
portato-824e812a44851ec1963d3347f588821477e9937c.tar.bz2
portato-824e812a44851ec1963d3347f588821477e9937c.zip
Merge new (better) plugin system, now allowing to add widgets
Diffstat (limited to 'doc')
-rw-r--r--doc/Hooks10
-rw-r--r--doc/Howto_Write_Plugins4
2 files changed, 12 insertions, 2 deletions
diff --git a/doc/Hooks b/doc/Hooks
index 647dd56..d4786a8 100644
--- a/doc/Hooks
+++ b/doc/Hooks
@@ -30,3 +30,13 @@ Parameters: None
Return if override: Nothing
Comment: DO NOT OVERRIDE :)
+
+List of widget slots
+====================
+
+Plugin Menu:
+------------
+Allows to add entries to the 'Plugins' menu.
+Widget Class: internal
+Needed Callbacks: activate
+Note: Only use "create_widget" instead of "add_widget"
diff --git a/doc/Howto_Write_Plugins b/doc/Howto_Write_Plugins
index bb63120..4fce64d 100644
--- a/doc/Howto_Write_Plugins
+++ b/doc/Howto_Write_Plugins
@@ -17,8 +17,8 @@ Add the end you only call ``register`` once for each class and are done :).
Of course there are some things you should bare in mind:
1. Do not use the ``__init__`` method, but ``init``.
- 2. Do not use a member which shadows one from the original class:
- ``description``, ``author``, ``status``, ``menus``, ``name``, ``calls``, ``deps``, ``enabled``, ``add_menu``, ``add_call``
+ 2. Do not declare a member which shadows one from the original class:
+ ``description``, ``author``, ``status``, ``menus``, ``name``, ``calls``, ``deps``, ``enabled``, ``add_widget``, ``create_widget``, ``add_call``
3. Of course you can *use* the members mentioned under point 2.
For the details, please see the source code at the moment or write your question to portato@necoro.net