Beispiel #1
0
 def _on_tab_mouse_right(self, event):
     selection = event.GetSelection()
     menu = (MItem(_("Close this form"), help=_("Close this form"),
                   command=self.COMMAND_TOGGLE_SIDEFORM(binding=self._forms[selection].binding(),
                                                        _command_handler=self)),
             MItem(_("Filter the main form by this side form"),
                   help=_("Show only those rows of the main form, which have "
                          "at least one row in this side form."),
                   command=self.COMMAND_FILTER_BY_SIDEFORM(index=selection,
                                                           _command_handler=self)),
             self._displayed_forms_menu(),
             )
     popup_menu(self._notebook, menu, self._get_keymap())
     event.Skip()
Beispiel #2
0
 def _on_tab_mouse_right(self, event):
     selection = event.GetSelection()
     menu = (
         MItem(_("Close this form"),
               help=_("Close this form"),
               command=self.COMMAND_TOGGLE_SIDEFORM(
                   binding=self._forms[selection].binding(),
                   _command_handler=self)),
         MItem(_("Filter the main form by this side form"),
               help=_("Show only those rows of the main form, which have "
                      "at least one row in this side form."),
               command=self.COMMAND_FILTER_BY_SIDEFORM(
                   index=selection, _command_handler=self)),
         self._displayed_forms_menu(),
     )
     popup_menu(self._notebook, menu, self._get_keymap())
     event.Skip()
Beispiel #3
0
 def _on_notebook_mouse_right(self, event):
     popup_menu(self._notebook, (self._displayed_forms_menu(),), self._get_keymap())
     event.Skip()
Beispiel #4
0
 def _on_notebook_mouse_right(self, event):
     popup_menu(self._notebook, (self._displayed_forms_menu(), ),
                self._get_keymap())
     event.Skip()