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:
|
A dialog for displaying the dependencies |
|
A tree widget to display dependencies |
- class psyplot_gui.dependencies.DependenciesDialog(versions, *args, **kwargs)[source]
Bases:
QDialog
A dialog for displaying the dependencies
Attributes:
The QPushButton used for copying selected packages to the clipboard
A label for simple status update
description label
A QTimer that clears the
info_label
after some timeThe
DependenciesTree
that contains the package infosthe QVBoxLayout containing all the widgets
Methods:
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
- 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 a menu to expand and collapse all items in the tree
- Parameters:
position (QPosition) – The position where to open the menu