pysvgview package

Submodules

pysvgview.configs module

All configurations for pysvgview

class pysvgview.configs.ConfigDummy[source]

Bases: Config

Parameters for nothing

doit = True

pysvgview.main module

main

pysvgview.main.main()[source]
pysvgview.main.view() → None[source]

pysvgview.static module

version which can be consumed from within the module

pysvgview.svg_view module

” svg_view.py

class pysvgview.svg_view.ActionTypes(*values)[source]

Bases: Enum

CENTER = 4
CLOSE = 2
NEXT = 6
OPEN = 1
PREV = 7
QUIT = 3
RELOAD = 5
class pysvgview.svg_view.MainWindow[source]

Bases: QMainWindow

center()[source]
create_actions()[source]
load(path)[source]
open()[source]
reload()[source]
show_location(point)[source]
tab_close()[source]
tab_next()[source]
tab_prev()[source]
class pysvgview.svg_view.SvgWidget(path)[source]

Bases: QSvgWidget

center()[source]
location_changed

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

mouseMoveEvent(self, a0: QMouseEvent | None)[source]
mousePressEvent(self, a0: QMouseEvent | None)[source]
mouseReleaseEvent(self, a0: QMouseEvent | None)[source]
reload()[source]
resizeEvent(self, a0: QResizeEvent | None)[source]
update_location(pos)[source]
update_view_box(size)[source]
wheelEvent(self, a0: QWheelEvent | None)[source]
pysvgview.svg_view.view_svgs(filenames: list[str])[source]

Module contents

Initialize the module