From 736e94609f7e82a081b57ade38f226f79768bfb6 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Wed, 5 Aug 2009 22:57:13 +0100 Subject: [PATCH] display importing message, and make it blue --- pyfpdb/GuiBulkImport.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyfpdb/GuiBulkImport.py b/pyfpdb/GuiBulkImport.py index d4b61195..ad537e5c 100755 --- a/pyfpdb/GuiBulkImport.py +++ b/pyfpdb/GuiBulkImport.py @@ -74,7 +74,10 @@ class GuiBulkImport(): cb_hmodel = self.cb_drophudcache.get_model() cb_hindex = self.cb_drophudcache.get_active() - self.lab_info.set_text("Importing") # doesn't display :-( + self.lab_info.set_markup('Importing ...') # uses pango markup! + while gtk.events_pending(): # see http://faq.pygtk.org/index.py?req=index for more hints (3.7) + gtk.main_iteration(False) + if cb_index: self.importer.setDropIndexes(cb_model[cb_index][0]) else: