psyplot / psyplot-gui

Graphical User Interface for the psyplot package
https://psyplot.github.io/psyplot-gui
7 stars 6 forks source link

Add DockMixin.position_dock and reset of expanded items #12

Closed Chilipp closed 4 years ago

Chilipp commented 4 years ago

This method adds a new method to the DockMixin to set the position of the DockWidget. By default, this is implemented as

    def position_dock(self, main, *args, **kwargs):
        main.addDockWidget(self.dock_position, self.dock, *args, **kwargs)

and called in the to_dock method.

Furthermore, the DatasetTree now does not collapse the items anymore after the project as been updated.