Dependencies widget of the psyplot package

This module defines the DependenciesWidget that shows the versions of of psyplot, psyplot_gui, psyplot plugins and their requirements

Classes:

DependenciesDialog(versions, *args, **kwargs)

A dialog for displaying the dependencies

DependenciesTree(versions, *args, **kwargs)

A tree widget to display dependencies

class psyplot_gui.dependencies.DependenciesDialog(versions, *args, **kwargs)[source]

Bases: QDialog

A dialog for displaying the dependencies

Attributes:

bt_copy

The QPushButton used for copying selected packages to the clipboard

info_label

A label for simple status update

label

description label

timer

A QTimer that clears the info_label after some time

tree

The DependenciesTree that contains the package infos

vbox

the QVBoxLayout containing all the widgets

Methods:

clear_label()

Clear the info label

copy_selected([label])

Copy the selected versions and items to the clipboard

bt_copy = None

The QPushButton used for copying selected packages to the clipboard

clear_label()[source]

Clear the info label

copy_selected(label=None)[source]

Copy the selected versions and items to the clipboard

info_label = None

A label for simple status update

label = None

description label

timer = None

A QTimer that clears the info_label after some time

tree = None

The DependenciesTree that contains the package infos

vbox = None

the QVBoxLayout containing all the widgets

class psyplot_gui.dependencies.DependenciesTree(versions, *args, **kwargs)[source]

Bases: QTreeWidget

A tree widget to display dependencies

This widget uses a dictionary as created through the psyplot.get_versions() function to display the requirements and versions.

Methods:

add_dependencies(versions[, parent])

Add the version informations to the tree

open_menu(position)

Open a menu to expand and collapse all items in the tree

add_dependencies(versions, parent=None)[source]

Add the version informations to the tree

This method creates an QTreeWidgetItem for each package in versions and adds it to this tree.

Parameters:

parent (QTreeWidgetItem) – The parent of the newly created items for the packages in versions. If None, the newly created items are inserted as top level items into the tree

open_menu(position)[source]

Open a menu to expand and collapse all items in the tree

Parameters:

position (QPosition) – The position where to open the menu