icons and help documents added; main application has been modified slightly; new method definitions added (ToDo)
This commit is contained in:
parent
d58b671d36
commit
9b8413beaf
@ -34,6 +34,9 @@ class MainWindow(QMainWindow):
|
||||
|
||||
self.setupUi()
|
||||
|
||||
def loadData(self):
|
||||
pass
|
||||
|
||||
def setupUi(self):
|
||||
self.setWindowIcon(QIcon("PyLoT.ico"))
|
||||
|
||||
@ -44,7 +47,7 @@ class MainWindow(QMainWindow):
|
||||
parent=self,
|
||||
filterOptions=filteroptions)
|
||||
|
||||
statLayout = self.layoutStationButtons()
|
||||
statLayout = self.layoutStationButtons(self.numStations)
|
||||
|
||||
maingrid = QGridLayout()
|
||||
maingrid.setSpacing(10)
|
||||
@ -62,19 +65,39 @@ class MainWindow(QMainWindow):
|
||||
|
||||
def plotData(self, data):
|
||||
if data is not None and isinstance(data, Stream):
|
||||
self.DataPlot.height
|
||||
self.stats.numStations = data.
|
||||
|
||||
def updateFilterOptions(self):
|
||||
self.filteroptions = [self.filterOptionsP if not self.seismicPhase == 'S'
|
||||
self.filteroptions = [self.filterOptionsP
|
||||
if not self.seismicPhase == 'S'
|
||||
else self.filterOptionsS]
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Creating a Qt application
|
||||
def layoutStationButtons(self, numStations):
|
||||
layout = QVBoxLayout()
|
||||
for n in range(numStations):
|
||||
stationButtons[n] = QPushButton('%s'.format(self.))
|
||||
|
||||
def helpHelp(self):
|
||||
if internet_on():
|
||||
pass
|
||||
|
||||
|
||||
def main():
|
||||
# create th Qt application
|
||||
pylot_app = QApplication(sys.argv)
|
||||
|
||||
pylot_main = MainWindow()
|
||||
pylot_main.setWindowTitle('PyLoT-The Picking and Localization Tool')
|
||||
# set Application Information
|
||||
pylot_app.setOrganizationName("Ruhr-University Bochum / MAGS2")
|
||||
pylot_app.setOrganizationDomain("rub.de")
|
||||
pylot_app.setApplicationName("PyLoT")
|
||||
pylot_app.setWindowIcon(QIcon(":/pylot.ico"))
|
||||
|
||||
# create the main window
|
||||
pylot_form = MainWindow()
|
||||
|
||||
# Show main window and run the app
|
||||
pylot_main.show()
|
||||
pylot_form.show()
|
||||
pylot_app.exec_()
|
||||
|
||||
|
||||
main()
|
||||
|
17
pylot/core/util/help/index.html
Normal file
17
pylot/core/util/help/index.html
Normal file
@ -0,0 +1,17 @@
|
||||
<html><head><title>PyLoT - the Python picking and Localisation Tool</title></head>
|
||||
<body>
|
||||
<p><b>PyLoT</b> is a program which is capable of picking seismic phases,
|
||||
exporting these as numerous standard phase format and localize the corresponding
|
||||
seismic event with external software as, e.g.:</p>
|
||||
<ul type="circle">
|
||||
<li><a href="http://alomax.free.fr/nlloc/">NonLinLoc</a></li>
|
||||
<li>HypoInvers</li>
|
||||
<li>HypoSat</li>
|
||||
<li>whatever you want ...</li>
|
||||
</ul>
|
||||
<p>Read more on the
|
||||
<a href="https://ariadne.geophysik.rub.de/trac/PyLoT/wiki">PyLoT WikiPage</a>.</p>
|
||||
<p>Bug reports are very much appreciated and can also be delivered on our
|
||||
<a href="https://ariadne.geophysik.rub.de/trac/PyLoT">PyLoT TracPage</a> after
|
||||
successful registration.</p>
|
||||
</body></html>
|
BIN
pylot/core/util/icons/pylot.ico
Normal file
BIN
pylot/core/util/icons/pylot.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
8
pylot/core/util/resources.qrc
Normal file
8
pylot/core/util/resources.qrc
Normal file
@ -0,0 +1,8 @@
|
||||
<RCC>
|
||||
<qresource prefix="/icons" lang="images">
|
||||
<file>icons/pylot.ico</file>
|
||||
</qresource>
|
||||
<qresource prefix="/help" lang="HTML">
|
||||
<file>help/index.html</file>
|
||||
</qresource>
|
||||
</RCC>
|
Loading…
Reference in New Issue
Block a user