GUI Module

This module contains the graphical user interface components of the PySide Demo application.

Submodules

window

class pyside_demo.gui.window.MainWindow[source]

Bases: QMainWindow

new_file()[source]
open_file()[source]
search_files()[source]
show_data()[source]
show_graph()[source]
show_home()[source]
show_map()[source]
show_settings()[source]
show_table()[source]
staticMetaObject = PySide6.QtCore.QMetaObject("MainWindow" inherits "QMainWindow": )
toggle_full_screen()[source]

top_menu

pyside_demo.gui.top_menu.create_menu_bar(window: QMainWindow)[source]

home

class pyside_demo.gui.home.HomeWidget[source]

Bases: QWidget

staticMetaObject = PySide6.QtCore.QMetaObject("HomeWidget" inherits "QWidget": )

data

class pyside_demo.gui.data.DataWidget(model: TableModel)[source]

Bases: QWidget

add_or_edit_item()[source]
load_item(item)[source]
load_items()[source]
resolve_conflicts()[source]
staticMetaObject = PySide6.QtCore.QMetaObject("DataWidget" inherits "QWidget": )
sync_with_postgresql()[source]

map

class pyside_demo.gui.map.MapWidget[source]

Bases: QWebEngineView

staticMetaObject = PySide6.QtCore.QMetaObject("MapWidget" inherits "QWebEngineView": )

graph

This module demonstrates 2D plotting capabilities in PyQtGraph

Source:

This functionality is implemented from PyQtGraph example:

.venv/Lib/site-packages/pyqtgraph/examples/Plotting.py

that can also be accessed by running:

$ poetry run python -m pyqtgraph.examples

and selecting Basic Plotting.

The module showcases various 2D plotting features available in pyqtgraph. All plots can be panned/scaled by dragging with left/right mouse buttons. Right-clicking on any plot displays a context menu.

Original source code was updated to pass mypy test.

class pyside_demo.gui.graph.GraphWidget[source]

Bases: QWidget

staticMetaObject = PySide6.QtCore.QMetaObject("GraphWidget" inherits "QWidget": )
update() None[source]
update(arg__1: QRect) None
update(arg__1: QRegion | QBitmap | QPolygon | QRect) None
update(x: int, y: int, w: int, h: int) None

update(self) -> None update(self, arg__1: PySide6.QtCore.QRect) -> None update(self, arg__1: Union[PySide6.QtGui.QRegion, PySide6.QtGui.QBitmap, PySide6.QtGui.QPolygon, PySide6.QtCore.QRect]) -> None update(self, x: int, y: int, w: int, h: int) -> None

update_plot()[source]

settings

class pyside_demo.gui.settings.SettingsWidget[source]

Bases: QWidget

staticMetaObject = PySide6.QtCore.QMetaObject("SettingsWidget" inherits "QWidget": )

dialog

class pyside_demo.gui.dialog.ConflictResolutionDialog(item)[source]

Bases: QDialog

get_resolution()[source]
init_ui()[source]
staticMetaObject = PySide6.QtCore.QMetaObject("ConflictResolutionDialog" inherits "QDialog": )