Update Tables_Demo to work with new XTables/TableWindow format.

This commit is contained in:
Eratosthenes 2009-11-16 10:00:26 -05:00
parent 4e78dd8d93
commit 3ef23852a6

View File

@ -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()