Not a user callable method. Used to get Graph click events. Called by tkinter when button is released :param event: (event) event info from tkinter. Contains the x and y coordinates of a click :type event:
(self, event)
| 6805 | |
| 6806 | # button callback |
| 6807 | def button_press_call_back(self, event): |
| 6808 | """ |
| 6809 | Not a user callable method. Used to get Graph click events. Called by tkinter when button is released |
| 6810 | |
| 6811 | :param event: (event) event info from tkinter. Contains the x and y coordinates of a click |
| 6812 | :type event: |
| 6813 | """ |
| 6814 | |
| 6815 | self.ClickPosition = self._convert_canvas_xy_to_xy(event.x, event.y) |
| 6816 | self.ParentForm.LastButtonClickedWasRealtime = self.DragSubmits |
| 6817 | if self.Key is not None: |
| 6818 | self.ParentForm.LastButtonClicked = self.Key |
| 6819 | else: |
| 6820 | self.ParentForm.LastButtonClicked = '__GRAPH__' # need to put something rather than None |
| 6821 | # if self.ParentForm.CurrentlyRunningMainloop: |
| 6822 | # self.ParentForm.TKroot.quit() # kick out of loop if read was called |
| 6823 | _exit_mainloop(self.ParentForm, self) |
| 6824 | self.MouseButtonDown = True |
| 6825 | |
| 6826 | def _update_position_for_returned_values(self, event): |
| 6827 | """ |
nothing calls this directly
no test coverage detected