From fd4e421ca38134fa4077d062ccbda29e503f64d9 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Tue, 27 Jul 2010 18:41:51 +0200 Subject: [PATCH] remove another dupe from TourneyFilters --- pyfpdb/Filters.py | 1 + pyfpdb/TourneyFilters.py | 10 +--------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/pyfpdb/Filters.py b/pyfpdb/Filters.py index f282baa6..e1d876d4 100644 --- a/pyfpdb/Filters.py +++ b/pyfpdb/Filters.py @@ -884,6 +884,7 @@ class Filters(threading.Thread): for w in self.mainVBox.get_children(): w.destroy() self.make_filter() + #end def __refresh def __toggle_box(self, widget, entry): if self.boxes[entry].props.visible: diff --git a/pyfpdb/TourneyFilters.py b/pyfpdb/TourneyFilters.py index 3a8fa542..d2bce0ab 100644 --- a/pyfpdb/TourneyFilters.py +++ b/pyfpdb/TourneyFilters.py @@ -63,20 +63,12 @@ class TourneyFilters(Filters.Filters): self.make_filter() #end def __init__ - def __refresh(self, widget, entry): + def __refresh(self, widget, entry): #identical with Filters for w in self.mainVBox.get_children(): w.destroy() self.make_filter() #end def __refresh - def __set_hero_name(self, w, site): - _name = w.get_text() - # get_text() returns a str but we want internal variables to be unicode: - _guiname = unicode(_name) - self.heroes[site] = _guiname - #log.debug("setting heroes[%s]: %s"%(site, self.heroes[site])) - #end def __set_hero_name - def __set_num_tourneys(self, w, val): try: self.numTourneys = int(w.get_text())