visiannot.visiannot.components.WindowsPopUp

Summary

Module defining classes for creating pop-up windows in help menu bar

Classes

visiannot.visiannot.components.WindowsPopUp.WindowAbout()

Pop-up window with information about ViSiAnnoT

visiannot.visiannot.components.WindowsPopUp.WindowLicense()

Pop-up window with ViSiAnnoT License

visiannot.visiannot.components.WindowsPopUp.WindowPopUp(…)

Base class for creating a pop-up window

API

Class WindowAbout

class visiannot.visiannot.components.WindowsPopUp.WindowAbout[source]

Bases: visiannot.visiannot.components.WindowsPopUp.WindowPopUp

Pop-up window with information about ViSiAnnoT

Class WindowLicense

class visiannot.visiannot.components.WindowsPopUp.WindowLicense[source]

Bases: visiannot.visiannot.components.WindowsPopUp.WindowPopUp

Pop-up window with ViSiAnnoT License

Class WindowPopUp

class visiannot.visiannot.components.WindowsPopUp.WindowPopUp(title, width, height)[source]

Bases: PyQt5.QtWidgets.QWidget

Base class for creating a pop-up window

This is used for pop-up windows of the help menu in the menu bar of ViSiAnnoT.

Parameters
  • title (str) – window title

  • width (int) – window width in pixels

  • height (int) – window height in pixels

Methods:

addLabel(text, pos[, alignment, scroll_lay])

Adds a label in the layout of the pop-up window

addLabel(text, pos, alignment=None, scroll_lay=None)[source]

Adds a label in the layout of the pop-up window

Parameters
  • text (str) – text of the label, it may be html

  • pos (tuple) – position of the label in the layout, length 2 (row, col) or 4 (row, col, rowspan, colspan)

  • alignment – constant defining the label alignment, see https://doc.qt.io/qt-5/qt.html#AlignmentFlag-enum

  • scroll_lay (QtWidgets.QGridLayout) – layout filling the scroll that must contain the label

Returns

label

Return type

QtWidgets.QLabel