Exemple #1
0
 def resume(self, event=None):
     if self.check():
         if self.checkRepeatedNames(self.controller.getSuppliers()):
             if MB.confirmation():
                 self.controller.addCustomer(self.nameEntry.get().strip(),
                                             self.numberEntry.get().strip())
                 self.clear()
Exemple #2
0
 def resume(self, event=None):
     if self.check():
         if self.checkRepeatedNames(self.choosenSub.sons):
             if MB.confirmation():
                 self.controller.addKind(self.entry.get().strip(),
                                         self.choosenSub)
                 self.clear()
 def resume(self, event=None):
     if self.check():
         if MB.confirmation():
             self.controller.addOldSellAction(
                 self.personFrame.choosenPerson,
                 self.groupsFrame.choosenKind, self.getArea(),
                 self.getPaid(), self.getPrice(),
                 self.timeFrame.getTimeValue())
             self.clear()
Exemple #4
0
 def resume(self, event=None):
     if self.check():
         if MB.confirmation():
             self.controller.reAdvancePayment(self.entry.get().strip(),
                                              self.choosenAdvancePayment)
             self.clear()
 def resume(self, event=None):
     if self.check():
         if self.controller.checkMoney(self.moneyEntry.get().strip()):
             if MB.confirmation():
                 self.controller.addAdvancePayment(self.nameEntry.get().strip(), self.moneyEntry.get().strip())
                 self.clear()
 def resume(self, event=None):
     if self.check():
         if MB.confirmation():
             self.choosenKind.updateArea(
                 -1 * float(self.areaEntry.get().strip()))
             self.clear()
Exemple #7
0
 def resume(self, event=None):
     if self.check():
         if self.checkRepeatedNames(self.controller.getMenuGroups()):
             if MB.confirmation():
                 self.controller.addMainGroup(self.entry.get().strip())
                 self.clear()