def do_user_config(self, parent=None): ''' Overridden because this is the only way I can get a callback to know that the config widget is now finished with so I can disconnect events. ''' res = InterfaceActionBase.do_user_config(self, parent) if self.cw: self.cw.disconnect_signals() return res
def load_actual_plugin(self, gui): # so the sys.path was modified while loading the plug impl. with self: # Make sure the fanficfare module is available globally # under its simple name, -- This is the only reason other # plugin files can import fanficfare instead of # calibre_plugins.fanficfare_plugin.fanficfare. # # Added specifically for the benefit of # eli-schwartz/eschwartz's Arch Linux distro that wants to # package FFF plugin outside Calibre. import fanficfare return InterfaceActionBase.load_actual_plugin(self, gui)
def load_actual_plugin(self, gui): with self: # so the sys.path was modified while loading the # plug impl. return InterfaceActionBase.load_actual_plugin(self,gui)
def load_actual_plugin(self, gui): with self: # so the sys.path was modified while loading the # plug impl. return InterfaceActionBase.load_actual_plugin(self, gui)
def __init__(self, *args, **kwargs): InterfaceActionBase.__init__(self, *args, **kwargs) self.set_default_prefs()
def __init__(self, *args, **kwargs): InterfaceActionBase.__init__(self, *args, **kwargs) self.set_default_prefs()