imports fixed and classes renamed for better readability
This commit is contained in:
parent
e6b49cfdb3
commit
c26782bf7c
@ -1,4 +1,6 @@
|
||||
from pylot.core.util.version import get_git_version as _getVersionString
|
||||
from pylot.core.util.defaults import FILTERDEFAULTS
|
||||
from pylot.core.util.widgets import *
|
||||
from pylot.core.util.errors import *
|
||||
from pylot.core.util.widgets import (PickDlg, MPLWidget, PropertiesDlg,
|
||||
FilterOptionsDock)
|
||||
from pylot.core.util.errors import OptionsError
|
||||
from pylot.core.util.connection import checkurl
|
||||
|
@ -12,6 +12,7 @@ matplotlib.rcParams['backend.qt4'] = 'PySide'
|
||||
|
||||
from matplotlib.figure import Figure
|
||||
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
|
||||
from PySide.QtGui import (QDialog, QDockWidget)
|
||||
|
||||
|
||||
class MPLWidget(FigureCanvasQTAgg):
|
||||
@ -28,16 +29,18 @@ class MPLWidget(FigureCanvasQTAgg):
|
||||
self.axes.set_ylabel(ylabel)
|
||||
self.axes.set_title(title)
|
||||
|
||||
class PickWindow(QDialog):
|
||||
|
||||
class PickDlg(QDialog):
|
||||
|
||||
def __init__(self, station=None, parent=None):
|
||||
super(PickWindow, self).__init__(parent)
|
||||
super(PickDlg, self).__init__(parent)
|
||||
|
||||
filterDockWidget = FilterOptionsDock(titleString="Filter Options",
|
||||
parent=self,
|
||||
filterOptions=filteroptions)
|
||||
|
||||
class PropertiesWindow(QDialog):
|
||||
|
||||
class PropertiesDlg(QDialog):
|
||||
|
||||
def __init__(self, parent=None):
|
||||
super(PropertiesWindow, self).__init__(parent)
|
||||
@ -54,4 +57,4 @@ class FilterOptionsDock(QDockWidget):
|
||||
fOptions = FilterOptions(**filterOptions)
|
||||
filterOptions = fOptions
|
||||
except e:
|
||||
raise OptionsError('%s' % e)
|
||||
raise OptionsError('%s' % e)
|
||||
|
Loading…
Reference in New Issue
Block a user