Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Tk based file dialog with PyQt5 baed version
- Loading branch information
Showing
19 changed files
with
4,302 additions
and
4,222 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
"""Stoner.Folders : Classes for working collections of :class:`.Data` files. | ||
The core classes provides a means to access them as an ordered collection or as a mapping. | ||
""" | ||
__all__ = ["DataFolder", "PlotFolder"] | ||
|
||
from .folders.core import baseFolder | ||
from .folders.mixins import DiskBasedFolder, DataMethodsMixin, PlotMethodsMixin | ||
|
||
|
||
class DataFolder(DataMethodsMixin, DiskBasedFolder, baseFolder): | ||
|
||
"""Provide an interface to manipulating lots of data files stored within a directory structure on disc. | ||
By default, the members of the DataFolder are isntances of :class:`Stoner.Data`. The DataFolder emplys a lazy open strategy, so that | ||
files are only read in from disc when actually needed. | ||
.. inheritance-diagram:: DataFolder | ||
""" | ||
|
||
def __init__(self, *args, **kargs): | ||
from Stoner import Data | ||
|
||
self.type = kargs.pop("type", Data) | ||
super(DataFolder, self).__init__(*args, **kargs) | ||
|
||
|
||
class PlotFolder(PlotMethodsMixin, DataFolder): | ||
|
||
"""A :py:class:`Stoner.folders.baseFolder` that knows how to ploth its underlying data files.""" | ||
"""Stoner.Folders : Classes for working collections of :class:`.Data` files. | ||
The core classes provides a means to access them as an ordered collection or as a mapping. | ||
""" | ||
__all__ = ["DataFolder", "PlotFolder"] | ||
|
||
from .folders.core import baseFolder | ||
from .folders.mixins import DiskBasedFolder, DataMethodsMixin, PlotMethodsMixin | ||
|
||
|
||
class DataFolder(DataMethodsMixin, DiskBasedFolder, baseFolder): | ||
|
||
"""Provide an interface to manipulating lots of data files stored within a directory structure on disc. | ||
By default, the members of the DataFolder are isntances of :class:`Stoner.Data`. The DataFolder emplys a lazy open strategy, so that | ||
files are only read in from disc when actually needed. | ||
.. inheritance-diagram:: DataFolder | ||
""" | ||
|
||
def __init__(self, *args, **kargs): | ||
from Stoner import Data | ||
|
||
self.type = kargs.pop("type", Data) | ||
super(DataFolder, self).__init__(*args, **kargs) | ||
|
||
|
||
class PlotFolder(PlotMethodsMixin, DataFolder): | ||
|
||
"""A :py:class:`Stoner.folders.baseFolder` that knows how to ploth its underlying data files.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.