psy_strat.strat_widget module

Module for a widget for stratigraphic plots

This module defines the StratPlotsWidget class that can be used to manage stratigraphic plots. It is designed as a plugin for the psyplot_gui.main.MainWindow class

Classes

GrouperItem(grouper, tree, *args, **kwargs)

An item whose contents is filled by a StratGrouper

StratPlotsWidget(*args, **kwargs)

A widget for managing the stratigraphic plots from the psy-strat package

Functions

get_stratplots_widgets([mainwindow])

Get the StraditizerWidgets from the psyplot GUI mainwindow

class psy_strat.strat_widget.GrouperItem(grouper, tree, *args, **kwargs)[source]

Bases: PyQt5.QtWidgets.QTreeWidgetItem

An item whose contents is filled by a StratGrouper

This item is automatically initialized by an instance of psy_strat.stratplot.StratGrouper

Methods

add_array_children()

show_or_hide_func(name)

Create a function that displays or hides the plot for an array

add_array_children()[source]
show_or_hide_func(name)[source]

Create a function that displays or hides the plot for an array

class psy_strat.strat_widget.StratPlotsWidget(*args, **kwargs)[source]

Bases: PyQt5.QtWidgets.QWidget, psyplot_gui.common.DockMixin

A widget for managing the stratigraphic plots from the psy-strat package

Methods

add_tree(groupers[, title])

Add a new QTreeWidget to the tabs widget

move_selected_children(child, col)

update_trees_from_project(project)

Add a new QTreeWidget from the main project

Attributes

dock_position

Display the dock widget at the right side of the GUI

hidden

True if there is no psy_strat.plotter.StratPlotter in the

stratplotter_cls

The psy_strat.plotters.StratPlotter class if it’s module has already been imported.

title

The title of the widget

add_tree(groupers, title=None)[source]

Add a new QTreeWidget to the tabs widget

dock_position = 2

Display the dock widget at the right side of the GUI

property hidden

True if there is no psy_strat.plotter.StratPlotter in the current main project

move_selected_children(child, col)[source]
property stratplotter_cls

The psy_strat.plotters.StratPlotter class if it’s module has already been imported. Otherwise None.

title = 'Stratigraphic plots'

The title of the widget

update_trees_from_project(project)[source]

Add a new QTreeWidget from the main project

psy_strat.strat_widget.get_stratplots_widgets(mainwindow=None)[source]

Get the StraditizerWidgets from the psyplot GUI mainwindow