From c5ae1e785b5a8976ed0d693121663c557d82aba3 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Tue, 27 Jul 2010 18:33:01 +0200 Subject: [PATCH] remove another method from TF - this was only an almost-dupe --- pyfpdb/Filters.py | 1 + pyfpdb/TourneyFilters.py | 26 -------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/pyfpdb/Filters.py b/pyfpdb/Filters.py index 35ab96c3..dffcaa53 100644 --- a/pyfpdb/Filters.py +++ b/pyfpdb/Filters.py @@ -325,6 +325,7 @@ class Filters(threading.Thread): liststore.append(_nt) self.__set_hero_name(pname, site) + #end def createPlayerLine def __set_hero_name(self, w, site): _name = w.get_text() diff --git a/pyfpdb/TourneyFilters.py b/pyfpdb/TourneyFilters.py index 0de12a5f..5c6a144f 100644 --- a/pyfpdb/TourneyFilters.py +++ b/pyfpdb/TourneyFilters.py @@ -112,32 +112,6 @@ class TourneyFilters(Filters.Filters): widget.set_label("hide") #end def __toggle_box - def createPlayerLine(self, hbox, site, player): - log.debug('add:"%s"' % player) - label = gtk.Label(site +" id:") - hbox.pack_start(label, False, False, 3) - - pname = gtk.Entry() - pname.set_text(player) - pname.set_width_chars(20) - hbox.pack_start(pname, False, True, 0) - #pname.connect("changed", self.__set_hero_name, site) - - # Added EntryCompletion but maybe comboBoxEntry is more flexible? (e.g. multiple choices) - completion = gtk.EntryCompletion() - pname.set_completion(completion) - liststore = gtk.ListStore(gobject.TYPE_STRING) - completion.set_model(liststore) - completion.set_text_column(0) - names = self.db.get_player_names(self.conf, self.siteid[site]) # (config=self.conf, site_id=None, like_player_name="%") - for n in names: # list of single-element "tuples" - _n = Charset.to_gui(n[0]) - _nt = (_n, ) - liststore.append(_nt) - - self.__set_hero_name(pname, site) - #end def createPlayerLine - def createTourneyTypeLine(self, hbox, tourneyType): cb = gtk.CheckButton(str(tourneyType)) cb.connect('clicked', self.__set_tourney_type_select, tourneyType)