def __init__(self, buffer=None, width_in_chars=81, aspect_ratio=0.33, fdesc=None): _View.__init__(self, buffer=buffer if buffer else Buffer()) self._fdesc = fdesc if fdesc is not None else pango.FontDescription("mono 10") self.modify_font(self._fdesc) self._width_in_chars = width_in_chars self._aspect_ratio = aspect_ratio self._adjust_size_request()
def __init__(self, manager, editor): View.__init__(self, Buffer()) self.__init_attributes(manager, editor) self.__set_properties() self.__add_view_to_scrolled_window() self.__sigid1 = manager.connect("destroy", self.__destroy_cb) self.__sigid2 = manager.connect("description-treeview-sensitivity", self.__sensitive_cb) self.__sigid3 = manager.connect("description-treeview-cursor-changed", self.__changed_cb) self.__sigid4 = manager.connect("selected-templates-dictionary-key", self.__key_cb) self.__sigid5 = manager.connect("templates-dictionary", self.__dictionary_cb) self.__sigid6 = self.connect("button-press-event", self.__button_press_event_cb)
def __init__(self, manager, editor): View.__init__(self, Buffer()) self.__init_attributes(manager, editor) self.__add_view_to_scrolled_window() self.__sigid1 = manager.connect("destroy", self.__destroy_cb) self.__sigid2 = manager.connect("valid-trigger", self.__valid_cb)