def set_button_actions(self):
     self.pushButton_add_cost_group.clicked.connect(self.button_add_cost_group)
     self.pushButton_add_trade.clicked.connect(self.button_add_trade)
     """ delete button """
     self.pushButton_delete.clicked.connect(
         lambda: helper.delete(self, self.loaded_inventory_item)
     )
    def set_button_actions(self):
        """add company"""
        self.pushButton_add_contact_person.clicked.connect(self.add_new_contact_person)
        self.pushButton_edit_contact_person.clicked.connect(self.edit_contact_person)

        """ delete button """
        self.pushButton_delete.clicked.connect(
            lambda: helper.delete(self, self.loaded_company)
        )
 def set_button_actions(self):
     self.pushButton_determine_job_nr.clicked.connect(
         self.set_to_max_job_number)
     self.pushButton_add_company.clicked.connect(self.add_new_company)
     self.pushButton_add_trade.clicked.connect(self.add_new_trade)
     self.pushButton_add_cost_group.clicked.connect(self.add_new_cost_group)
     self.pushButton_add_paid_safety_deposit.clicked.connect(
         self.pay_safety_deposit)
     self.pushButton_remove_paid_safety_deposit.clicked.connect(
         self.button_remove_psd)
     """ delete button """
     self.pushButton_delete.clicked.connect(
         lambda: helper.delete(self, self.loaded_job))
 def set_button_actions(self):
     self.pushButton_reset_filter.clicked.connect(self.button_reset_filter)
     self.pushButton_add_inventory_item.clicked.connect(
         self.button_new_inventory_item
     )
     self.pushButton_edit_inventory_item.clicked.connect(
         self.button_edit_inventory_item
     )
     self.pushButton_copy_inventory_item.clicked.connect(
         self.button_copy_inventory_item
     )
     self.pushButton_remove_inventory_item.clicked.connect(
         self.button_remove_inventory_item
     )
     """ delete button """
     self.pushButton_delete.clicked.connect(
         lambda: helper.delete(self, self.loaded_pcc)
     )
Exemple #5
0
 def set_button_actions(self):
     """date buttons"""
     self.pushButton_invoice_date_set_today.clicked.connect(
         lambda: self.dateEdit_invoice_date.setDate(QDate.currentDate()))
     self.pushButton_inbox_date_set_today.clicked.connect(
         lambda: self.dateEdit_inbox_date.setDate(QDate.currentDate()))
     self.pushButton_checked_date_set_today.clicked.connect(
         lambda: self.dateEdit_checked_date.setDate(QDate.currentDate()))
     self.pushButton_due_date_set_today.clicked.connect(
         lambda: self.dateEdit_due_date.setDate(QDate.currentDate()))
     self.pushButton_due_date_discount_set_today.clicked.connect(
         lambda: self.dateEdit_due_date_discount.setDate(QDate.currentDate(
         )))
     """ add company """
     self.pushButton_add_company.clicked.connect(self.add_new_company)
     """ add job """
     self.pushButton_add_job.clicked.connect(self.add_new_job)
     """ delete button """
     self.pushButton_delete.clicked.connect(
         lambda: helper.delete(self, self.loaded_invoice))
 def set_button_actions(self):
     """delete button"""
     self.pushButton_delete.clicked.connect(
         lambda: helper.delete(self, self.loaded_trade)
     )