def __init__(self, parent): self.main = parent PydocBrowser.__init__(self, parent) OpenfiscaPluginMixin.__init__(self, parent) # Initialize plugin self.initialize_plugin() self.register_widget_shortcuts("Editor", self.find_widget) self.webview.set_zoom_factor(self.get_option('zoom_factor')) self.url_combo.setMaxCount(self.get_option('max_history_entries')) self.url_combo.addItems( self.load_history() )
def __init__(self, parent): self.main = parent PydocBrowser.__init__(self, parent) OpenfiscaPluginMixin.__init__(self, parent) # Initialize plugin self.initialize_plugin() self.register_widget_shortcuts("Editor", self.find_widget) self.webview.set_zoom_factor(self.get_option('zoom_factor')) self.url_combo.setMaxCount(self.get_option('max_history_entries')) self.url_combo.addItems(self.load_history())
def visibility_changed(self, enable): """DockWidget visibility has changed""" OpenfiscaPluginMixin.visibility_changed(self, enable) if enable and not self.is_server_running(): self.initialize()