3
def __init__(self, manager, editor):
4
self.__init_attributes(manager, editor)
5
self.__sigid1 = self.__button.connect("toggled", self.__toggled_cb)
6
self.__sigid2 = self.__manager.connect("destroy", self.__destroy_cb)
7
self.__sigid3 = self.__manager.connect("database-update", self.__update_cb)
8
self.__set_properties()
10
def __init_attributes(self, manager, editor):
11
self.__editor = editor
12
self.__manager = manager
13
self.__button = manager.gui.get_widget("SpellCheckButton")
17
self.__editor.disconnect_signal(self.__sigid1, self.__button)
18
self.__editor.disconnect_signal(self.__sigid2, self.__manager)
19
self.__editor.disconnect_signal(self.__sigid3, self.__manager)
20
self.__button.destroy()
26
self.__button.handler_block(self.__sigid1)
27
from SpellCheckMetadata import get_value
28
self.__button.set_active(get_value())
29
self.__button.handler_unblock(self.__sigid1)
33
from SpellCheckMetadata import set_value
34
set_value(self.__button.get_active())
37
def __set_properties(self):
41
def __toggled_cb(self, *args):
45
def __update_cb(self, *args):
49
def __destroy_cb(self, *args):