Moved NotebookWCloseBtns import to Gtk_Presentation and deleted debug messages
authorEugene Gagarin <mosfet07@ya.ru>
Fri, 15 May 2009 06:30:37 +0000 (10:30 +0400)
committerEugene Gagarin <mosfet07@ya.ru>
Fri, 15 May 2009 06:30:37 +0000 (10:30 +0400)
src/files/search.py
src/main.py

index 22f22e6..59228f8 100755 (executable)
@@ -7,7 +7,7 @@ from os.path import join, abspath, normcase, isdir, getsize
 from heapq import nlargest
 from fnmatch import fnmatch
 
-from misc import size_hum_read, _, NotebookWCloseBtns
+from misc import size_hum_read, _
 from config import config
 
 OUTTYPES = [
@@ -119,6 +119,7 @@ class Gtk_Presentation(object):
     def __init__(self, start_func, __):
         import gtk
         global gtk  # for show_current_status()
+        from misc import NotebookWCloseBtns
 
         self.nb = NotebookWCloseBtns()
         self.nb.notebook.set_scrollable(True)
@@ -281,7 +282,6 @@ class Gtk_Presentation(object):
 
     #=== Output type selecting ================================================
     def show_out_toplevel(self, outtype, results):
-        print 'Entering <' + outtype['name'] + '> output mode...'
         out_submodule = __import__('files.' + outtype['name'], None, None, outtype)
         self.out_toplevel = out_submodule.Gtk_Presentation(results).toplevel
         self.nb.new_tab(self.out_toplevel, outtype['label'])
index 2f23a7c..453d264 100755 (executable)
@@ -163,12 +163,9 @@ class Gtk_Presentation(object):
 
     #=== Search selecting =====================================================
     def show_search_toplevel(self, btn, searchtype):
-        print 'Entering <' + searchtype + '> search mode...'
-
         search_module = __import__(searchtype + '.search')
         search = search_module.search.Control('Gtk', None)
         search_toplevel = search.toplevel
-
         try:
             self.vbox.remove(self.vbox.get_children()[2])
         except: