astrodatagui: open NewStarDialog with the Add button
This commit is contained in:
@@ -2,6 +2,7 @@ from PyQt5 import QtWidgets, uic
|
||||
import os
|
||||
|
||||
from .db.StarsDB import StarDB
|
||||
from .ui.NewStarDialog import NewStarDialog
|
||||
|
||||
DEFAULT_DB = "stars.db"
|
||||
|
||||
@@ -14,6 +15,8 @@ class AstrodataGUI(QtWidgets.QMainWindow):
|
||||
|
||||
self.actionExit.triggered.connect(self.actionExitTriggered)
|
||||
|
||||
self.btAddNew.clicked.connect(self.addNewClicked)
|
||||
|
||||
self.show()
|
||||
|
||||
self.loadDB()
|
||||
@@ -43,3 +46,7 @@ class AstrodataGUI(QtWidgets.QMainWindow):
|
||||
starDB.close()
|
||||
|
||||
self.close()
|
||||
|
||||
def addNewClicked(self):
|
||||
diag = NewStarDialog()
|
||||
diag.exec()
|
||||
Reference in New Issue
Block a user