16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
from config import *
from channels import *
class history:
# plugin attributes
module = "history"
meta = plugin_meta()
# store
bm = None
# hook up to main tab
def __init__(self, parent):
self.config = self.meta["config"]
# keep reference to main window
self.bm = parent.channels["bookmarks"]
# create category
self.bm.add_category("history");
self.bm.reload_if_current(self.module)
|
|
>
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
from config import *
from channels import *
class history:
# plugin attributes
module = __name__
meta = plugin_meta()
# store
bm = None
# hook up to main tab
def __init__(self, parent):
self.config = self.meta["config"]
conf.add_plugin_defaults(self.meta, self.module)
# keep reference to main window
self.bm = parent.channels["bookmarks"]
# create category
self.bm.add_category("history");
self.bm.reload_if_current(self.module)
|