Not user callable. Called when some end-point on the menu (an item) has been clicked. Send the information back to the application as an event. Before event can be sent :param item_chosen: the text that was clicked on / chosen from the menu :type item_chosen: (str)
(self, item_chosen)
| 8604 | return |
| 8605 | |
| 8606 | def _MenuItemChosenCallback(self, item_chosen): # Menu Menu Item Chosen Callback |
| 8607 | """ |
| 8608 | Not user callable. Called when some end-point on the menu (an item) has been clicked. Send the information back to the application as an event. Before event can be sent |
| 8609 | |
| 8610 | :param item_chosen: the text that was clicked on / chosen from the menu |
| 8611 | :type item_chosen: (str) |
| 8612 | """ |
| 8613 | # print('IN MENU ITEM CALLBACK', item_chosen) |
| 8614 | self.MenuItemChosen = item_chosen |
| 8615 | self.ParentForm.LastButtonClicked = item_chosen |
| 8616 | self.ParentForm.FormRemainedOpen = True |
| 8617 | # if self.ParentForm.CurrentlyRunningMainloop: |
| 8618 | # self.ParentForm.TKroot.quit() # kick the users out of the mainloop |
| 8619 | _exit_mainloop(self.ParentForm, self) |
| 8620 | |
| 8621 | def update(self, menu_definition=None, visible=None): |
| 8622 | """ |
no test coverage detected