/usr/lib/x86_64-linux-gnu/geany/hello.py is in geany-plugin-py 1.29+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import gtk
import geany
class HelloWorld(geany.Plugin):
__plugin_name__ = "HelloWorld"
__plugin_version__ = "1.0"
__plugin_description__ = "Just another tool to say hello world"
__plugin_author__ = "John Doe <john.doe@example.org>"
def __init__(self):
self.menu_item = gtk.MenuItem("Hello World")
self.menu_item.show()
geany.main_widgets.tools_menu.append(self.menu_item)
self.menu_item.connect("activate", self.on_hello_item_clicked)
def cleanup(self):
self.menu_item.destroy()
def on_hello_item_clicked(widget, data):
geany.dialogs.show_msgbox("Hello World")
|