From ee58199742162745e706f859a964cbb49de62f72 Mon Sep 17 00:00:00 2001 From: Eratosthenes Date: Wed, 10 Nov 2010 11:12:09 -0500 Subject: [PATCH] UB U/C table names now match normal case title bars. --- pyfpdb/HUD_main.pyw | 6 +++--- pyfpdb/XTables.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfpdb/HUD_main.pyw b/pyfpdb/HUD_main.pyw index 7954cda7..31e50b27 100755 --- a/pyfpdb/HUD_main.pyw +++ b/pyfpdb/HUD_main.pyw @@ -358,9 +358,9 @@ class HUD_main(object): log.info(_("HUD_main.read_stdin: hand read in %4.3f seconds (%4.3f,%4.3f,%4.3f,%4.3f,%4.3f,%4.3f)") % (t6 - t0,t1 - t0,t2 - t0,t3 - t0,t4 - t0,t5 - t0,t6 - t0)) self.db_connection.connection.rollback() - if type == "tour": - tablewindow.check_table_no(None) - # Ray!! tablewindow::check_table_no expects a HUD as an argument! +# if type == "tour": +# tablewindow.check_table_no(None) +# # Ray!! tablewindow::check_table_no expects a HUD as an argument! if __name__== "__main__": # start the HUD_main object diff --git a/pyfpdb/XTables.py b/pyfpdb/XTables.py index 59fc0b3d..fd9189c6 100644 --- a/pyfpdb/XTables.py +++ b/pyfpdb/XTables.py @@ -46,7 +46,7 @@ class Table(Table_Window): self.number = None for listing in os.popen('xwininfo -root -tree').readlines(): - if re.search(self.search_string, listing): + if re.search(self.search_string, listing, re.I): mo = re.match('\s+([\dxabcdef]+) (.+):\s\(\"([a-zA-Z0-9\-.]+)\".+ (\d+)x(\d+)\+\d+\+\d+ \+(\d+)\+(\d+)', listing) title = re.sub('\"', '', mo.group(2)) if self.check_bad_words(title): continue