|
1 | 1 | #!/usr/bin/python3 |
2 | 2 |
|
3 | | -version = __version__ = "4.60.0.14 Unreleased" |
| 3 | +version = __version__ = "4.60.0.15 Unreleased" |
4 | 4 |
|
5 | 5 | _change_log = """ |
6 | 6 | Changelog since 4.60.0 released to PyPI on 8-May-2022 |
|
40 | 40 | Added Window.unbind |
41 | 41 | 4.60.0.14 |
42 | 42 | Added (None, None) to the Window docstring |
| 43 | + 4.60.0.15 |
| 44 | + Fix for continuous Graph element mouse up events when reading with a timeout=0. Big thank you to @davesmivers (THANKS DAVE!!) for finding and fixing |
43 | 45 | """ |
44 | 46 |
|
45 | 47 | __version__ = version.split()[0] # For PEP 396 and PEP 345 |
@@ -6468,25 +6470,22 @@ def button_release_call_back(self, event): |
6468 | 6470 | :param event: (event) event info from tkinter. Note not used in this method |
6469 | 6471 | :type event: |
6470 | 6472 | """ |
6471 | | - if not self.DragSubmits: # only report mouse up for drag operations |
6472 | | - return |
| 6473 | + if not self.DragSubmits: |
| 6474 | + return # only report mouse up for drag operations |
6473 | 6475 | self.ClickPosition = self._convert_canvas_xy_to_xy(event.x, event.y) |
6474 | | - self.LastButtonClickedWasRealtime = not self.DragSubmits |
| 6476 | + self.ParentForm.LastButtonClickedWasRealtime = False |
6475 | 6477 | if self.Key is not None: |
6476 | 6478 | self.ParentForm.LastButtonClicked = self.Key |
6477 | 6479 | else: |
6478 | 6480 | self.ParentForm.LastButtonClicked = '__GRAPH__' # need to put something rather than None |
6479 | | - # if self.ParentForm.CurrentlyRunningMainloop: |
6480 | | - # self.ParentForm.TKroot.quit() |
6481 | 6481 | _exit_mainloop(self.ParentForm) |
6482 | | - if self.DragSubmits: |
6483 | | - if isinstance(self.ParentForm.LastButtonClicked, str): |
6484 | | - self.ParentForm.LastButtonClicked = self.ParentForm.LastButtonClicked + '+UP' |
6485 | | - else: |
6486 | | - self.ParentForm.LastButtonClicked = (self.ParentForm.LastButtonClicked, '+UP') |
6487 | | - # self.ParentForm.LastButtonClicked += '+UP' # this is the old method that required string key |
| 6482 | + if isinstance(self.ParentForm.LastButtonClicked, str): |
| 6483 | + self.ParentForm.LastButtonClicked = self.ParentForm.LastButtonClicked + '+UP' |
| 6484 | + else: |
| 6485 | + self.ParentForm.LastButtonClicked = (self.ParentForm.LastButtonClicked, '+UP') |
6488 | 6486 | self.MouseButtonDown = False |
6489 | 6487 |
|
| 6488 | + |
6490 | 6489 | # button callback |
6491 | 6490 | def button_press_call_back(self, event): |
6492 | 6491 | """ |
|
0 commit comments