dir and file structure creation
Initial window testing (POC)
This commit is contained in:
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
0
assets/geojson/fault_lines.geojson
Normal file
0
assets/geojson/fault_lines.geojson
Normal file
0
assets/geojson/nz_regions.geojson
Normal file
0
assets/geojson/nz_regions.geojson
Normal file
0
assets/styles/app_stlyes.qss
Normal file
0
assets/styles/app_stlyes.qss
Normal file
0
config/app_settigns.json
Normal file
0
config/app_settigns.json
Normal file
0
config/app_settings.json
Normal file
0
config/app_settings.json
Normal file
29
requirements.txt
Normal file
29
requirements.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
certifi==2025.8.3
|
||||
charset-normalizer==3.4.3
|
||||
contourpy==1.3.3
|
||||
cycler==0.12.1
|
||||
decorator==5.2.1
|
||||
fonttools==4.59.1
|
||||
greenlet==3.2.4
|
||||
idna==3.10
|
||||
kiwisolver==1.4.9
|
||||
lxml==6.0.0
|
||||
matplotlib==3.10.5
|
||||
numpy==2.3.2
|
||||
obspy==1.4.2
|
||||
packaging==25.0
|
||||
pandas==2.3.1
|
||||
pillow==11.3.0
|
||||
pyparsing==3.2.3
|
||||
PyQt6==6.9.1
|
||||
PyQt6-Qt6==6.9.1
|
||||
PyQt6_sip==13.10.2
|
||||
python-dateutil==2.9.0.post0
|
||||
pytz==2025.2
|
||||
requests==2.32.4
|
||||
scipy==1.16.1
|
||||
setuptools==80.9.0
|
||||
six==1.17.0
|
||||
SQLAlchemy==1.4.54
|
||||
tzdata==2025.2
|
||||
urllib3==2.5.0
|
0
src/__init__.py
Normal file
0
src/__init__.py
Normal file
0
src/data/__init__.py
Normal file
0
src/data/__init__.py
Normal file
12
src/main.py
Normal file
12
src/main.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
from PyQt6.QtWidgets import QApplication
|
||||
from src.ui.main_window import MainWindow
|
||||
|
||||
def main():
|
||||
app = QApplication(sys.argv)
|
||||
window = Mainwindow()
|
||||
window.show()
|
||||
sys.exit(app.exec())
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
0
src/models/__init__.py
Normal file
0
src/models/__init__.py
Normal file
0
src/ui/__init__.py
Normal file
0
src/ui/__init__.py
Normal file
24
src/ui/main_window.py
Normal file
24
src/ui/main_window.py
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
from PyQt6.QtWidgets import QMainWindow, QLabel, QVBoxLayout, QWidget
|
||||
from PyQt6.QtCore import Qt
|
||||
|
||||
class MainWindow(QMainWindow):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.setWindowTitle("NZ EarthQuake Viewer (POC)")
|
||||
self.setGeometry(100, 100, 1200, 800) # x, y, width, height
|
||||
|
||||
central_widget = QWidget()
|
||||
self.setCentralWidget(central_widget)
|
||||
|
||||
main_layout = QVBoxLayout(central_widget)
|
||||
|
||||
self.hello_label = QLabel("Hello from PyQt! This is Working.", self)
|
||||
|
||||
self. hello_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
||||
|
||||
self.hello_label.setStyleSheet("font-size: 24px; color: #333; padding: 20px;")
|
||||
|
||||
main_layout.addWidget(self.hello_label)
|
||||
|
||||
|
0
src/utils/__init__.py
Normal file
0
src/utils/__init__.py
Normal file
Reference in New Issue
Block a user