move 2 more methods from TourneyFilters to Filters

This commit is contained in:
steffen123 2010-07-27 18:35:38 +02:00
parent c5ae1e785b
commit e006db3a2d
2 changed files with 14 additions and 13 deletions

View File

@ -348,6 +348,20 @@ class Filters(threading.Thread):
cb.connect('clicked', self.__set_site_select, site) cb.connect('clicked', self.__set_site_select, site)
cb.set_active(True) cb.set_active(True)
hbox.pack_start(cb, False, False, 0) 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): def createGameLine(self, hbox, game):
cb = gtk.CheckButton(game) cb = gtk.CheckButton(game)

View File

@ -97,12 +97,6 @@ class TourneyFilters(Filters.Filters):
log.debug("self.sites[%s] set to %s" %(site, self.sites[site])) log.debug("self.sites[%s] set to %s" %(site, self.sites[site]))
#end def __set_site_select #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): def __toggle_box(self, widget, entry):
if self.boxes[entry].props.visible: if self.boxes[entry].props.visible:
self.boxes[entry].hide() self.boxes[entry].hide()
@ -112,13 +106,6 @@ class TourneyFilters(Filters.Filters):
widget.set_label("hide") widget.set_label("hide")
#end def __toggle_box #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): def fillPlayerFrame(self, vbox, display):
top_hbox = gtk.HBox(False, 0) top_hbox = gtk.HBox(False, 0)
vbox.pack_start(top_hbox, False, False, 0) vbox.pack_start(top_hbox, False, False, 0)