Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def textRouter::TextRouter::on_menuUtilitiesNewFilter_select (   self,
  event 
)

Allows the user to define a new filter.

Definition at line 2004 of file textRouter.py.

02004                                                      :
        """Allows the user to define a new filter."""

        inputDetails = [ ["name", self.strs["newFltPrefs"]["nameP"],
                          self.strs["newFltPrefs"]["nameH"],
                          "", 1],
                         ["command", self.strs["newFltPrefs"]["cmdP"],
                          self.strs["newFltPrefs"]["cmdH"],
                          "", 1],
                         ]

        dlg = PreferencesDialog(self, "New Filter", inputDetails)

        dlg.showModal()
        if dlg.accepted():
            self.filters.append( [ dlg.components.name.text, dlg.components.command.text ] )
            self.status("Filter (%s) added." % (self.filters[-1][0]))
        else:
            self.status("New filter definition cancelled.")
        dlg.destroy()

    def on_menuUtilitiesRemoveFilter_select(self, event):


Generated by  Doxygen 1.6.0   Back to index