~skqr/scribes/skqr-0.4

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name = "Shortcut Window Plugin"
authors = ["Kuba"]
version = 0.3
autoload = True
class_name = "ShortcutWindowPlugin"
short_description = "Shows all shortcuts"
long_description = """This plugin creates a handy window listing
all shortcuts available in Scribes."""

class ShortcutWindowPlugin(object):

	def __init__(self, editor):
		self.__editor = editor
		self.__trigger = None

	def load(self):
		from ShortcutWindow.Trigger import Trigger
		self.__trigger = Trigger(self.__editor)
		return

	def unload(self):
		self.__trigger.destroy()
		return