Update Tables_Demo to work with new XTables/TableWindow format.
This commit is contained in:
parent
4e78dd8d93
commit
3ef23852a6
|
@ -82,11 +82,12 @@ if __name__=="__main__":
|
||||||
(tour_no, tab_no) = table_name.split(",", 1)
|
(tour_no, tab_no) = table_name.split(",", 1)
|
||||||
tour_no = tour_no.rstrip()
|
tour_no = tour_no.rstrip()
|
||||||
tab_no = tab_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
|
else: # not a tournament
|
||||||
print "cash game"
|
print "cash game"
|
||||||
table_name = table_name.rstrip()
|
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 "table =", table
|
||||||
print "game =", table.get_game()
|
print "game =", table.get_game()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user