From 94bdc43deb87e2e67b3924785d44cdd11cab8186 Mon Sep 17 00:00:00 2001 From: Eratosthenes Date: Fri, 3 Dec 2010 11:51:18 -0500 Subject: [PATCH] Tables_Demo to work with new Tables stuff. Find Tour tables better. --- pyfpdb/HandHistoryConverter.py | 2 +- pyfpdb/Tables_Demo.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) mode change 100755 => 100644 pyfpdb/Tables_Demo.py diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index f99e05f4..62383beb 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -664,7 +664,7 @@ or None if we fail to get the info """ def getTableTitleRe(type, table_name=None, tournament = None, table_number=None): "Returns string to search in windows titles" if type=="tour": - return "%s.+Table.+%s" % (tournament, table_number) + return "%s.+Table %s" % (tournament, table_number) else: return table_name diff --git a/pyfpdb/Tables_Demo.py b/pyfpdb/Tables_Demo.py old mode 100755 new mode 100644 index 3e633204..f00c201e --- a/pyfpdb/Tables_Demo.py +++ b/pyfpdb/Tables_Demo.py @@ -103,9 +103,12 @@ if __name__=="__main__": table_kwargs = dict(table_name = table_name) table = Tables.Table(config, "Full Tilt Poker", **table_kwargs) + table.gdk_handle = gtk.gdk.window_foreign_new(table.number) print table fake = fake_hud(table) + fake.parent = fake + gobject.timeout_add(1000, table.check_game, fake) gobject.timeout_add(100, table.check_table, fake) print "calling main"