From 06763429e465b2bfebad8e7969c3633e217b9e2d Mon Sep 17 00:00:00 2001 From: Roman Trapeznikov <47295209+Dliwk@users.noreply.github.com> Date: Sat, 15 Jul 2023 01:24:44 +0300 Subject: [PATCH] Update README.md api 8 examples --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d625ccc..f062de6 100644 --- a/README.md +++ b/README.md @@ -80,19 +80,19 @@ There are two different ways the plugin manager can be installed: Let's say you wanna submit this new utility-type plugin named as `sample_plugin.py`: ```python -# ba_meta require api 7 -import ba +# ba_meta require api 8 +import babase -# ba_meta export plugin -class Main(ba.Plugin): +# ba_meta export babase.Plugin +class Main(babase.Plugin): def on_app_running(self): - ba.screenmessage("Hi! I am a sample plugin!") + babase.screenmessage("Hi! I am a sample plugin!") def has_settings_ui(self): return True def show_settings_ui(self, source_widget): - ba.screenmessage("You tapped my settings!") + babase.screenmessage("You tapped my settings!") ``` You'll have to fork this repository and add your `sample_plugin.py` plugin file into the appropriate directory, which for