Exemplo n.º 1
0
    def btnGetDetails_Click(self):
        try:
            cus = Customer()

            cus.getDetails(self.varid.get())
            self.varid.set(cus.id)
            self.varName.set(cus.Name)
            self.varAddress.set(cus.address)
        except Exception as ex:
            tkinter.messagebox.showinfo("Failure!", ex)
Exemplo n.º 2
0
 def btnDelete_Click(self):
     global countIndex
     try:
         cus = Customer()
         cus.deleteCus(self.varid.get())
         tkinter.messagebox.showinfo("Sucess!",
                                     "Customer Deleted Sucessfully")
         Customer.FillCustomerList()
         countIndex = 0
     except Exception as ex:
         tkinter.messagebox.showinfo("Failure!", ex)
Exemplo n.º 3
0
 def btnAdd_Click(self):
     global countIndex
     try:
         cus = Customer()
         cus.id = self.varid.get()
         cus.Name = self.varName.get()
         cus.address = self.varAddress.get()
         cus.addCustomer()
         tkinter.messagebox.showinfo("Sucess!",
                                     "Customer Added Sucessfully")
         Customer.FillCustomerList()
         countIndex = 0
     except Exception as ex:
         tkinter.messagebox.showinfo("Failure!", ex)