From 444ec73f1dc02c9579c2983f16fb8157127a437a Mon Sep 17 00:00:00 2001 From: Eratosthenes Date: Mon, 1 Mar 2010 19:26:45 -0500 Subject: [PATCH] Update for changes to Tables.Table() call. --- pyfpdb/Tables_Demo.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Tables_Demo.py b/pyfpdb/Tables_Demo.py index 397579e7..92bb1a3c 100755 --- a/pyfpdb/Tables_Demo.py +++ b/pyfpdb/Tables_Demo.py @@ -32,12 +32,16 @@ import gtk import gobject # fpdb/free poker tools modules +import Configuration +from HandHistoryConverter import getTableTitleRe + # get the correct module for the current os if os.name == 'posix': import XTables as Tables elif os.name == 'nt': import WinTables as Tables +config = Configuration.Config() # Main function used for testing if __name__=="__main__": # c = Configuration.Config() @@ -82,11 +86,16 @@ if __name__=="__main__": (tour_no, tab_no) = table_name.split(",", 1) tour_no = tour_no.rstrip() tab_no = tab_no.rstrip() - table = Tables.Table(None, tournament = tour_no, table_number = tab_no) + type = "tour" + table_kwargs = dict(tournament = tour_no, table_number = tab_no) else: # not a tournament print "cash game" table_name = table_name.rstrip() - table = Tables.Table(None, table_name = table_name) + type = "cash" + table_kwargs = dict(table_name = table_name) + + search_string = getTableTitleRe(config, "Full Tilt Poker", type, **table_kwargs) + table = Tables.Table(search_string, **table_kwargs) table.gdk_handle = gtk.gdk.window_foreign_new(table.number) print "table =", table