Merge branch 'master' of git://git.assembla.com/fpdb-eric

Conflicts:

	pyfpdb/fpdb_simple.py
This commit is contained in:
Worros 2008-12-16 12:17:50 +09:00
commit 828cfc405d
2 changed files with 2540 additions and 2530 deletions

View File

@ -123,6 +123,15 @@ class Hud:
self.main_window.set_destroy_with_parent(True)
def update_table_position(self):
# self.main_window.parentgdkhandle = gtk.gdk.window_foreign_new(self.table.number)
# if self.main_window.parentgdkhandle == None:
if os.name == 'nt':
if not win32gui.IsWindow(self.table.number):
self.kill_hud()
return False
else:
return False # kill the timer under Unix, and ignore it until we have a way to check the validity of the window.
(x, y) = self.main_window.parentgdkhandle.get_origin()
if self.table.x != x or self.table.y != y:
self.table.x = x
@ -134,7 +143,7 @@ class Hud:
(x, y) = loc[adj[i]]
if self.stat_windows.has_key(i):
self.stat_windows[i].relocate(x, y)
return True
def on_button_press(self, widget, event):
@ -229,7 +238,7 @@ class Hud:
aux_params = config.get_aux_parameters(game_params['aux'])
self.aux_windows.append(eval("%s.%s(gtk.Window(), self, config, 'fpdb')" % (aux_params['module'], aux_params['class'])))
# gobject.timeout_add(500, self.update_table_position)
gobject.timeout_add(500, self.update_table_position)
def update(self, hand, config, stat_dict):
self.hand = hand # this is the last hand, so it is available later

5057
pyfpdb/fpdb_simple.py Executable file → Normal file

File diff suppressed because it is too large Load Diff