From 442ff9140eb541ba28a8028a36a24b02f67b96a6 Mon Sep 17 00:00:00 2001 From: Harmen Prins Date: Wed, 18 Jun 2014 10:37:00 +0200 Subject: [PATCH] Changed GUI logging --- GUI/gui.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/GUI/gui.py b/GUI/gui.py index ef1b698..393a466 100644 --- a/GUI/gui.py +++ b/GUI/gui.py @@ -122,8 +122,9 @@ class GUI(): frame_logging = Frame(frame_checkboxes) variable_logging = BooleanVar() - variable_logging.set(False) - input_logging = Checkbutton(frame_logging, text="Verbose logging", variable=variable_logging) + variable_logging.set(True) + input_logging = Checkbutton(frame_logging, text="Verbose logging", + variable=variable_logging, onvalue=False, offvalue=True) variables.update({'logging':variable_logging}) frame_logging.pack(side=RIGHT) frame_checkboxes.pack(side=BOTTOM) @@ -160,16 +161,12 @@ class GUI(): def execute_search(self): """Calls the Fourmi crawler with the values from the GUI""" - print self.values - if self.values.get('all_attributes'): attributes = ".*" else: attribute_types = ['attributes', 'Common attributes', 'Always attributes'] attributes = ','.join([str(self.values.get(attribute)) for attribute in attribute_types]) - print attributes - arguments = {'--attributes': attributes, '--exclude': None, '--format': self.values.get('output_type'), @@ -188,6 +185,5 @@ class GUI(): def run(self): """Starts the window and the search.""" self.window.mainloop() - print self.finish_with_search if self.finish_with_search: self.execute_search() \ No newline at end of file