imports fixed and classes renamed for better readability

This commit is contained in:
Sebastian Wehling-Benatelli 2014-03-31 12:59:52 +02:00
parent e6b49cfdb3
commit c26782bf7c
2 changed files with 11 additions and 6 deletions

View File

@ -1,4 +1,6 @@
from pylot.core.util.version import get_git_version as _getVersionString from pylot.core.util.version import get_git_version as _getVersionString
from pylot.core.util.defaults import FILTERDEFAULTS from pylot.core.util.defaults import FILTERDEFAULTS
from pylot.core.util.widgets import * from pylot.core.util.widgets import (PickDlg, MPLWidget, PropertiesDlg,
from pylot.core.util.errors import * FilterOptionsDock)
from pylot.core.util.errors import OptionsError
from pylot.core.util.connection import checkurl

View File

@ -12,6 +12,7 @@ matplotlib.rcParams['backend.qt4'] = 'PySide'
from matplotlib.figure import Figure from matplotlib.figure import Figure
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
from PySide.QtGui import (QDialog, QDockWidget)
class MPLWidget(FigureCanvasQTAgg): class MPLWidget(FigureCanvasQTAgg):
@ -28,16 +29,18 @@ class MPLWidget(FigureCanvasQTAgg):
self.axes.set_ylabel(ylabel) self.axes.set_ylabel(ylabel)
self.axes.set_title(title) self.axes.set_title(title)
class PickWindow(QDialog):
class PickDlg(QDialog):
def __init__(self, station=None, parent=None): def __init__(self, station=None, parent=None):
super(PickWindow, self).__init__(parent) super(PickDlg, self).__init__(parent)
filterDockWidget = FilterOptionsDock(titleString="Filter Options", filterDockWidget = FilterOptionsDock(titleString="Filter Options",
parent=self, parent=self,
filterOptions=filteroptions) filterOptions=filteroptions)
class PropertiesWindow(QDialog):
class PropertiesDlg(QDialog):
def __init__(self, parent=None): def __init__(self, parent=None):
super(PropertiesWindow, self).__init__(parent) super(PropertiesWindow, self).__init__(parent)
@ -54,4 +57,4 @@ class FilterOptionsDock(QDockWidget):
fOptions = FilterOptions(**filterOptions) fOptions = FilterOptions(**filterOptions)
filterOptions = fOptions filterOptions = fOptions
except e: except e:
raise OptionsError('%s' % e) raise OptionsError('%s' % e)