Moved window title re to HHC classes

Just redefine function getTableTitleRe in coresponding hhc for custom re
This commit is contained in:
grindi
2009-11-07 20:30:47 +03:00
parent f99c4baa8b
commit 9dd600702a
3 changed files with 35 additions and 13 deletions
+5 -4
View File
@@ -53,6 +53,7 @@ import gobject
# FreePokerTools modules
import Configuration
import Database
from HandHistoryConverter import getTableTitleRe
# get the correct module for the current os
if os.name == 'posix':
import XTables as Tables
@@ -253,10 +254,10 @@ class HUD_main(object):
if comm_cards != {}: # stud!
cards['common'] = comm_cards['common']
if type == "tour":
tablewindow = Tables.Table(tournament = tour_number, table_number = tab_number)
else:
tablewindow = Tables.Table(table_name = table_name)
table_kwargs = dict(table_name = table_name, tournament = tour_number, table_number = tab_number)
search_string = getTableTitleRe(self.config, site, type, **table_kwargs)
tablewindow = Tables.Table(search_string, **table_kwargs)
if tablewindow is None:
# If no client window is found on the screen, complain and continue
if type == "tour":