From 3ef23852a69bfbb008e16c0e5a87d951f88fd08b Mon Sep 17 00:00:00 2001 From: Eratosthenes Date: Mon, 16 Nov 2009 10:00:26 -0500 Subject: [PATCH] Update Tables_Demo to work with new XTables/TableWindow format. --- pyfpdb/Tables_Demo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Tables_Demo.py b/pyfpdb/Tables_Demo.py index e141cab1..92d85d75 100755 --- a/pyfpdb/Tables_Demo.py +++ b/pyfpdb/Tables_Demo.py @@ -82,11 +82,12 @@ if __name__=="__main__": (tour_no, tab_no) = table_name.split(",", 1) tour_no = tour_no.rstrip() tab_no = tab_no.rstrip() - table = Tables.Table(tournament = tour_no, table_number = tab_no) + table = Tables.Table(None, tournament = tour_no, table_number = tab_no) else: # not a tournament print "cash game" table_name = table_name.rstrip() - table = Tables.Table(table_name = table_name) + table = Tables.Table(None, table_name = table_name) + table.gdk_handle = gtk.gdk.window_foreign_new(table.number) print "table =", table print "game =", table.get_game()