deleted obsolete module

This commit is contained in:
Sebastian Wehling-Benatelli 2015-06-11 10:02:44 +02:00
parent 63849177be
commit 3d8bea8f7e
2 changed files with 0 additions and 30 deletions

View File

@ -1,7 +1,6 @@
from pylot.core.util.connection import checkurl
from pylot.core.util.defaults import FILTERDEFAULTS
from pylot.core.util.errors import OptionsError, FormatError, DatastructureError
from pylot.core.util.layouts import layoutStationButtons
from pylot.core.util.utils import fnConstructor, createArrival, createEvent,\
createPick, createAmplitude, createOrigin, createMagnitude, getOwner, \
getHash, getLogin, createCreationInfo, createResourceID, prepTimeAxis, \
@ -9,5 +8,3 @@ from pylot.core.util.utils import fnConstructor, createArrival, createEvent,\
from pylot.core.util.widgets import PickDlg, HelpForm, FilterOptionsDialog,\
PropertiesDlg, NewEventDlg, MPLWidget, createAction
from pylot.core.util.version import get_git_version as _getVersionString

View File

@ -1,27 +0,0 @@
#!/usr/bin/env python
#
# -*- coding: utf-8 -*-
'''
Created on 10.11.2014
@author: sebastianw
'''
from PySide.QtGui import (QVBoxLayout,
QPushButton)
def layoutStationButtons(data, comp):
layout = QVBoxLayout()
stationButtons = []
try:
st = data.select(component=comp)
numStations = len(st)
for n in range(numStations):
stat = st[n].stats.station
stationButtons.append(QPushButton('%s'.format(stat)))
except:
for n in range(5):
stationButtons.append(QPushButton('ST{0:02d}'.format(n+1)))
for button in stationButtons:
layout.addWidget(button)
return layout