From e006db3a2dc77063435045f6fe6ca5f8b6ac6b02 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Tue, 27 Jul 2010 18:35:38 +0200 Subject: [PATCH] move 2 more methods from TourneyFilters to Filters --- pyfpdb/Filters.py | 14 ++++++++++++++ pyfpdb/TourneyFilters.py | 13 ------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/pyfpdb/Filters.py b/pyfpdb/Filters.py index dffcaa53..f282baa6 100644 --- a/pyfpdb/Filters.py +++ b/pyfpdb/Filters.py @@ -348,6 +348,20 @@ class Filters(threading.Thread): cb.connect('clicked', self.__set_site_select, site) cb.set_active(True) hbox.pack_start(cb, False, False, 0) + #end def createSiteLine + + def __set_tourney_type_select(self, w, tourneyType): + #print w.get_active() + self.tourneyTypes[tourneyType] = w.get_active() + log.debug("self.tourney_types[%s] set to %s" %(tourneyType, self.tourneyTypes[tourneyType])) + #end def __set_tourney_type_select + + def createTourneyTypeLine(self, hbox, tourneyType): + cb = gtk.CheckButton(str(tourneyType)) + cb.connect('clicked', self.__set_tourney_type_select, tourneyType) + hbox.pack_start(cb, False, False, 0) + cb.set_active(True) + #end def createTourneyTypeLine def createGameLine(self, hbox, game): cb = gtk.CheckButton(game) diff --git a/pyfpdb/TourneyFilters.py b/pyfpdb/TourneyFilters.py index 5c6a144f..3a8fa542 100644 --- a/pyfpdb/TourneyFilters.py +++ b/pyfpdb/TourneyFilters.py @@ -97,12 +97,6 @@ class TourneyFilters(Filters.Filters): log.debug("self.sites[%s] set to %s" %(site, self.sites[site])) #end def __set_site_select - def __set_tourney_type_select(self, w, tourneyType): - #print w.get_active() - self.tourneyTypes[tourneyType] = w.get_active() - log.debug("self.tourney_types[%s] set to %s" %(tourneyType, self.tourneyTypes[tourneyType])) - #end def __set_tourney_type_select - def __toggle_box(self, widget, entry): if self.boxes[entry].props.visible: self.boxes[entry].hide() @@ -112,13 +106,6 @@ class TourneyFilters(Filters.Filters): widget.set_label("hide") #end def __toggle_box - def createTourneyTypeLine(self, hbox, tourneyType): - cb = gtk.CheckButton(str(tourneyType)) - cb.connect('clicked', self.__set_tourney_type_select, tourneyType) - hbox.pack_start(cb, False, False, 0) - cb.set_active(True) - #end def createTourneyTypeLine - def fillPlayerFrame(self, vbox, display): top_hbox = gtk.HBox(False, 0) vbox.pack_start(top_hbox, False, False, 0)