Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins/plugin.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-03 15:34:37 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-03 15:34:37 (GMT)
commit8aa0f2223565fb58fa4f4e18e3bcf5b4a1b4db14 (patch)
treea658d203c83b07e62a4fe13a53c2d7ff25f39b4c /plugins/plugin.py
parent7e9f220378c42734ea918dc29542d14ecd66d51b (diff)
remove requirement to include setup, start, stop, et al. methods
Diffstat (limited to 'plugins/plugin.py')
-rw-r--r--plugins/plugin.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/plugin.py b/plugins/plugin.py
index 6c7a763..3065129 100644
--- a/plugins/plugin.py
+++ b/plugins/plugin.py
@@ -25,28 +25,26 @@ class Plugin(gobject.GObject):
def setup(self):
""" Setup is called once, when the Turtle Window is created. """
- raise RuntimeError("You need to define setup for your plugin.")
+ pass
def start(self):
""" start is called when run button is pressed. """
- raise RuntimeError("You need to define start for your plugin.")
+ pass
def stop(self):
""" stop is called when stop button is pressed. """
- raise RuntimeError("You need to define stop for your plugin.")
+ pass
def goto_background(self):
""" goto_background is called when the activity is sent to the
background. """
- raise RuntimeError(
- "You need to define goto_background for your plugin.")
+ pass
def return_to_foreground(self):
""" return_to_foreground is called when the activity returns to
the foreground. """
- raise RuntimeError(
- "You need to define return_to_foreground for your plugin.")
+ pass
def quit(self):
""" cleanup is called when the activity is exiting. """
- raise RuntimeError("You need to define quit for your plugin.")
+ pass