Beispiel #1
0
 def replacepatterns(self):
     self.master.view_grideditor(
         grideditor.ReplaceEditor(
             self.master,
             self.master.options.replacements,
             self.master.options.setter("replacements")
         )
     )
Beispiel #2
0
 def replacepatterns(self):
     data = []
     for d in self.master.options.replacements:
         if isinstance(d, str):
             data.append(replace.parse_hook(d))
         else:
             data.append(d)
     self.master.view_grideditor(
         grideditor.ReplaceEditor(
             self.master, data, self.master.options.setter("replacements")))