Tables_Demo to work with new Tables stuff. Find Tour tables better.
This commit is contained in:
parent
6f6d27d1fd
commit
94bdc43deb
|
@ -664,7 +664,7 @@ or None if we fail to get the info """
|
||||||
def getTableTitleRe(type, table_name=None, tournament = None, table_number=None):
|
def getTableTitleRe(type, table_name=None, tournament = None, table_number=None):
|
||||||
"Returns string to search in windows titles"
|
"Returns string to search in windows titles"
|
||||||
if type=="tour":
|
if type=="tour":
|
||||||
return "%s.+Table.+%s" % (tournament, table_number)
|
return "%s.+Table %s" % (tournament, table_number)
|
||||||
else:
|
else:
|
||||||
return table_name
|
return table_name
|
||||||
|
|
||||||
|
|
3
pyfpdb/Tables_Demo.py
Executable file → Normal file
3
pyfpdb/Tables_Demo.py
Executable file → Normal file
|
@ -103,9 +103,12 @@ if __name__=="__main__":
|
||||||
table_kwargs = dict(table_name = table_name)
|
table_kwargs = dict(table_name = table_name)
|
||||||
|
|
||||||
table = Tables.Table(config, "Full Tilt Poker", **table_kwargs)
|
table = Tables.Table(config, "Full Tilt Poker", **table_kwargs)
|
||||||
|
table.gdk_handle = gtk.gdk.window_foreign_new(table.number)
|
||||||
print table
|
print table
|
||||||
|
|
||||||
fake = fake_hud(table)
|
fake = fake_hud(table)
|
||||||
|
fake.parent = fake
|
||||||
|
|
||||||
gobject.timeout_add(1000, table.check_game, fake)
|
gobject.timeout_add(1000, table.check_game, fake)
|
||||||
gobject.timeout_add(100, table.check_table, fake)
|
gobject.timeout_add(100, table.check_table, fake)
|
||||||
print "calling main"
|
print "calling main"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user