예제 #1
0
    def open_new_ship_configuration(self):
        """Interface with new ship form"""
        self.ui.stackedWidget.setCurrentWidget(self.ui.New_ship_configuration)
        self.emp_title_back_to_first_page.clicked.connect(self.back_to_first_page)

        LoadDataToComboBox.load_ports(self.port_identification_comboBox)
        self.add_new_ship_button.clicked.connect(self.check_all_ship_details)
예제 #2
0
    def update_port_configuration(self):
        """Load interface with port update"""
        self.ui.stackedWidget.setCurrentWidget(self.ui.Port_configuration)
        self.emp_title_back_to_first_page.clicked.connect(self.back_to_first_page)
        LoadDataToComboBox.load_ports(self.port_comboBox)

        self.change_port_details_button.clicked.connect(self.enter_updated_port_details_to_db)