holds now all widgets' classes used in the main application
This commit is contained in:
parent
90936bd47a
commit
0af8ab2b08
@ -27,3 +27,31 @@ class MPLWidget(FigureCanvasQTAgg):
|
||||
self.axes.set_xlabel(xlabel)
|
||||
self.axes.set_ylabel(ylabel)
|
||||
self.axes.set_title(title)
|
||||
|
||||
class PickWindow(QDialog):
|
||||
|
||||
def __init__(self, station=None, parent=None):
|
||||
super(PickWindow, self).__init__(parent)
|
||||
|
||||
filterDockWidget = FilterOptionsDock(titleString="Filter Options",
|
||||
parent=self,
|
||||
filterOptions=filteroptions)
|
||||
|
||||
class PropertiesWindow(QDialog):
|
||||
|
||||
def __init__(self, parent=None):
|
||||
super(PropertiesWindow, self).__init__(parent)
|
||||
|
||||
|
||||
class FilterOptionsDock(QDockWidget):
|
||||
|
||||
def __init__(self, parent=None, titleString="Filter options",
|
||||
filterOptions=None):
|
||||
super(FilterOptionsDock, self).__init__()
|
||||
|
||||
if filterOptions and not isinstance(filterOptions, FilterOptions):
|
||||
try:
|
||||
fOptions = FilterOptions(**filterOptions)
|
||||
filterOptions = fOptions
|
||||
except e:
|
||||
raise OptionsError('%s' % e)
|
Loading…
Reference in New Issue
Block a user