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