def on_new_custom(self, event):
     new_label =  get_new_label(self.customs_list)
     index = self.customs_list.InsertStringItem(sys.maxint, new_label)
     self.customs_list.SetStringItem(index, 1, "value")
     event.Skip()
 def on_new_profile(self, event): # wxGlade: FilterFrame.<event_handler>
     self.set_profile_view()
     self.edit_profile_panel.reset()
     self.edit_profile_panel.all_value.SetValue(
         get_new_label(self.filter_list, "filter_"))