(self, entry)
| 128 | amount_entry.delete(0, 'end') |
| 129 | |
| 130 | def get_amount_from_entry(self, entry): |
| 131 | try: |
| 132 | amount = float(entry.get()) |
| 133 | if amount <= 0: |
| 134 | raise ValueError |
| 135 | return amount |
| 136 | except ValueError: |
| 137 | messagebox.showerror("Invalid Input", "Please enter a positive number") |
| 138 | return None |
| 139 | |
| 140 | def update_plot(self): |
| 141 | self.fig.clear() |
no outgoing calls
no test coverage detected