kite
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: kite | ||
| Version: 1.5.3 | ||
| Version: 1.5.4 | ||
| Summary: InSAR unwrapped surface displacement processing for earthquake modelling. | ||
@@ -5,0 +5,0 @@ Author-email: Marius Paul Isken <mi@gfz-potsdam.de>, Henriette Sudhaus <hsudhaus@ifg.uni-kiel.de> |
+1
-1
@@ -326,3 +326,3 @@ import logging | ||
| def __init__(self, app, model): | ||
| QtWidgets.QDialog.__init__(self, app) | ||
| QtWidgets.QDialog.__init__(self, parent=app) | ||
| logging_ui = op.join( | ||
@@ -329,0 +329,0 @@ op.dirname(op.realpath(__file__)), "spool", "res", "logging.ui" |
@@ -6,3 +6,3 @@ #!/usr/bin/python2 | ||
| from kite.talpa import Talpa | ||
| from kite.talpa.talpa import talpa | ||
@@ -63,3 +63,3 @@ | ||
| Talpa(filename=ns.file) | ||
| talpa(filename=ns.file) | ||
@@ -66,0 +66,0 @@ |
@@ -45,3 +45,3 @@ import logging | ||
| self.worker_thread = QtCore.QThread() | ||
| self.worker_thread = QtCore.QThread(self) | ||
| self.moveToThread(self.worker_thread) | ||
@@ -107,6 +107,6 @@ self.worker_thread.start() | ||
| @classmethod | ||
| def empty(cls): | ||
| def empty(cls, parent=None): | ||
| from ..sandbox_scene import SandboxScene | ||
| sandbox = cls() | ||
| sandbox = cls(parent=parent) | ||
| sandbox.setModel(SandboxScene()) | ||
@@ -135,3 +135,3 @@ return sandbox | ||
| idx = self.createIndex(isrc, 0) | ||
| src = source_model(self, src, idx) | ||
| src = source_model(self, src, idx, parent=self) | ||
@@ -138,0 +138,0 @@ self._sources.append(src) |
@@ -16,3 +16,3 @@ from PyQt5 import QtCore, QtGui, QtWidgets | ||
| layout.setContentsMargins(3, 3, 3, 3) | ||
| sources = SourcesList(sandbox) | ||
| sources = SourcesList(sandbox, parent=self) | ||
| sources_add_menu = SourcesAddButton(sandbox) | ||
@@ -95,7 +95,7 @@ | ||
| ) | ||
| self.setPopupMode(QtGui.QToolButton.InstantPopup) | ||
| self.setPopupMode(QtWidgets.QToolButton.InstantPopup) | ||
| self.setToolButtonStyle(QtCore.Qt.ToolButtonTextOnly) | ||
| class SourcesList(QtGui.QListView): | ||
| class SourcesList(QtWidgets.QListView): | ||
| class SourceItemDelegate(QtWidgets.QStyledItemDelegate): | ||
@@ -140,5 +140,5 @@ def paint(self, painter, option, index): | ||
| class SourceContextMenu(QtGui.QMenu): | ||
| class SourceContextMenu(QtWidgets.QMenu): | ||
| def __init__(self, parent, idx, *args, **kwargs): | ||
| QtGui.QMenu.__init__(self, *args, **kwargs) | ||
| QtWidgets.QMenu.__init__(self, parent, *args, **kwargs) | ||
| self.parent = parent | ||
@@ -169,3 +169,3 @@ self.sandbox = parent.sandbox | ||
| def __init__(self, sandbox, *args, **kwargs): | ||
| QtGui.QListView.__init__(self, *args, **kwargs) | ||
| QtWidgets.QListView.__init__(self, *args, **kwargs) | ||
| self.sandbox = sandbox | ||
@@ -194,3 +194,3 @@ self.setModel(sandbox.sources) | ||
| idx = self.indexAt(event.pos()) | ||
| menu = self.SourceContextMenu(self, idx, self) | ||
| menu = self.SourceContextMenu(self, idx) | ||
| menu.popup(event.globalPos()) |
@@ -187,4 +187,4 @@ import numpy as num | ||
| def __init__(self, model, source, index): | ||
| super().__init__() | ||
| def __init__(self, model, source, index, parent=None): | ||
| super().__init__(parent) | ||
| self.source = source | ||
@@ -191,0 +191,0 @@ self.model = model |
+12
-16
@@ -18,3 +18,3 @@ import sys | ||
| def __init__(self, filename=None): | ||
| QtWidgets.QApplication.__init__(self, ["Talpa"]) | ||
| super().__init__(["Talpa"]) | ||
@@ -35,11 +35,5 @@ splash_img = QtGui.QPixmap(get_resource("talpa_splash.png")).scaled( | ||
| self.aboutToQuit.connect(self.talpa_win.sandbox.worker_thread.quit) | ||
| self.aboutToQuit.connect(self.talpa_win.sandbox.deleteLater) | ||
| self.aboutToQuit.connect(self.splash.deleteLater) | ||
| self.aboutToQuit.connect(self.deleteLater) | ||
| self.talpa_win.show() | ||
| self.splash.finish(self.talpa_win) | ||
| rc = self.exec_() | ||
| sys.exit(rc) | ||
@@ -56,3 +50,3 @@ @QtCore.pyqtSlot(str) | ||
| loadUi(get_resource("talpa.ui"), baseinstance=self) | ||
| self.sandbox = SandboxModel.empty() | ||
| self.sandbox = SandboxModel.empty(self) | ||
@@ -83,3 +77,3 @@ self.log = SceneLog(self, self.sandbox) | ||
| def createView(self, sandbox): | ||
| plots = SandboxSceneDockarea(sandbox) | ||
| plots = SandboxSceneDockarea(sandbox, parent=self) | ||
| sources = SourcesListDock(sandbox, parent=self) | ||
@@ -90,3 +84,3 @@ self.addDockWidget(QtCore.Qt.LeftDockWidgetArea, sources) | ||
| def aboutDialog(self): | ||
| self._about = QtWidgets.QDialog(self) | ||
| self._about = QtWidgets.QDialog(parent=self) | ||
| loadUi(get_resource("about.ui"), baseinstance=self._about) | ||
@@ -107,7 +101,2 @@ return self._about | ||
| @QtCore.pyqtSlot(str) | ||
| def processingStarted(self, text): | ||
| self.progress.setLabelText(text) | ||
| self.progress.show() | ||
| @QtCore.pyqtSlot() | ||
@@ -148,3 +137,3 @@ def onSaveModel(self): | ||
| self.misfitWindow = MisfitWindow(self.sandbox, self) | ||
| self.misfitWindow = MisfitWindow(self.sandbox, parent=self) | ||
@@ -167,2 +156,3 @@ def toggleWindow(switch): | ||
| caption="Save scene", | ||
| parent=self, | ||
| ) | ||
@@ -203,1 +193,7 @@ if not validateFilename(filename): | ||
| ev.accept() | ||
| def talpa(*args, **kwargs): | ||
| talpa_app = Talpa(*args, **kwargs) | ||
| talpa_app.exec() | ||
| talpa_app.quit() |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: kite | ||
| Version: 1.5.3 | ||
| Version: 1.5.4 | ||
| Summary: InSAR unwrapped surface displacement processing for earthquake modelling. | ||
@@ -5,0 +5,0 @@ Author-email: Marius Paul Isken <mi@gfz-potsdam.de>, Henriette Sudhaus <hsudhaus@ifg.uni-kiel.de> |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
3341873
013771
-0.03%