(self, event=None)
| 187 | # standard button semantics |
| 188 | |
| 189 | def ok(self, event=None): |
| 190 | |
| 191 | if not self.validate(): |
| 192 | self.initial_focus.focus_set() # put focus back |
| 193 | return |
| 194 | |
| 195 | self.withdraw() |
| 196 | self.update_idletasks() |
| 197 | |
| 198 | try: |
| 199 | self.apply() |
| 200 | finally: |
| 201 | self.cancel() |
| 202 | |
| 203 | def cancel(self, event=None): |
| 204 |
nothing calls this directly
no test coverage detected