How to use the paperwork.frontend.actions.SimpleAction.__init__ function in paperwork

To help you get started, we’ve selected a few paperwork examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
def __init__(self, main_window, config):
        SimpleAction.__init__(self, "Open settings dialog")
        self.__main_win = main_window
        self.__config = config
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
def __init__(self, main_window):
        SimpleAction.__init__(self, "Focus on search field")
        self.__main_win = main_window
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
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
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
def __init__(self, main_window, action_txt):
        SimpleAction.__init__(self, action_txt)
        self.main_win = main_window
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
def __init__(self, main_window, config):
        SimpleAction.__init__(self, "Import file(s)")
        self.__main_win = main_window
        self.__config = config
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
def __init__(self, main_window, config):
        SimpleAction.__init__(self, "Set toolbar visibility")
        self.__main_win = main_window
        self.__config = config
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
def __init__(self, main_window, value):
        SimpleAction.__init__(self, ("Zoom = %f" % value))
        self.__main_win = main_window
        self.__value = value
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
def __init__(self, main_window):
        SimpleAction.__init__(self, "Open selected document")
        self.__main_win = main_window
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
def __init__(self, main_window):
        SimpleAction.__init__(self, "Delete page")
        self.__main_win = main_window
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow.py View on Github external
def __init__(self, main_window):
        SimpleAction.__init__(self, "Show a page (selected on its number)")
        self.__main_win = main_window