Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, main_window, config):
SimpleAction.__init__(self, "Open settings dialog")
self.__main_win = main_window
self.__config = config
def __init__(self, main_window):
SimpleAction.__init__(self, "Focus on search field")
self.__main_win = main_window
def __init__(self, main_window, relative=True, value=0):
if relative:
txt = "previous"
if value > 0:
txt = "next"
else:
if value < 0:
txt = "last"
else:
txt = "page %d" % (value)
SimpleAction.__init__(self, ("Show the %s page" % (txt)))
self.relative = relative
self.value = value
self.__main_win = main_window
def __init__(self, main_window, action_txt):
SimpleAction.__init__(self, action_txt)
self.main_win = main_window
def __init__(self, main_window, config):
SimpleAction.__init__(self, "Import file(s)")
self.__main_win = main_window
self.__config = config
def __init__(self, main_window, config):
SimpleAction.__init__(self, "Set toolbar visibility")
self.__main_win = main_window
self.__config = config
def __init__(self, main_window, value):
SimpleAction.__init__(self, ("Zoom = %f" % value))
self.__main_win = main_window
self.__value = value
def __init__(self, main_window):
SimpleAction.__init__(self, "Open selected document")
self.__main_win = main_window
def __init__(self, main_window):
SimpleAction.__init__(self, "Delete page")
self.__main_win = main_window
def __init__(self, main_window):
SimpleAction.__init__(self, "Show a page (selected on its number)")
self.__main_win = main_window