Exemplo n.º 1
0
 def edit_patterns(cls, button):
     win = JSONBasedEditor(Command, cls.all_commands(),
                           filename=cls.COMS_FILE,
                           title=_("Edit Custom Commands"))
     # Cache busting
     cls._commands = None
     win.show()
Exemplo n.º 2
0
 def edit_patterns(cls, button):
     cls.commands = cls._get_saved_searches()
     win = JSONBasedEditor(Command,
                           cls.commands,
                           filename=cls.COMS_FILE,
                           title=_("Edit Custom Commands"))
     win.show()
Exemplo n.º 3
0
 def test_JSONBasedEditor(self):
     ed = JSONBasedEditor(Command, self.commands, None, "title")
     ed.show_now()
     ed.destroy()