summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/gui.py b/gui.py
index e509935..19fff58 100644
--- a/gui.py
+++ b/gui.py
@@ -1,6 +1,9 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2 2
3#from gi.repository import gtk, GObject 3'''
4 Metadata anonymisation toolkit - GUI edition
5'''
6
4import gtk 7import gtk
5import gobject 8import gobject
6 9
@@ -232,7 +235,7 @@ class ListStoreApp:
232 w.set_comments('This software was coded during the GSoC 2011') 235 w.set_comments('This software was coded during the GSoC 2011')
233 w.set_website('https://gitweb.torproject.org/user/jvoisin/mat.git') 236 w.set_website('https://gitweb.torproject.org/user/jvoisin/mat.git')
234 w.set_website_label('Website') 237 w.set_website_label('Website')
235 w.set_authors(['Julien (jvoisin) Voisin', ]) 238 w.set_authors(['Julien (jvoisin) Voisin',])
236 w.set_program_name('Metadata Anonymistion Toolkit') 239 w.set_program_name('Metadata Anonymistion Toolkit')
237 click = w.run() 240 click = w.run()
238 if click: 241 if click:
@@ -282,7 +285,7 @@ non-anonymised) file to outputed archive')
282 if response is 0: # gtk.STOCK_OK 285 if response is 0: # gtk.STOCK_OK
283 dialog.destroy() 286 dialog.destroy()
284 287
285 def invert(self, button, name): # still not better :/ 288 def invert(self, _, name): # still not better :/
286 ''' 289 '''
287 Invert a preference state 290 Invert a preference state
288 ''' 291 '''
@@ -293,7 +296,10 @@ non-anonymised) file to outputed archive')
293 elif name is 'backup': 296 elif name is 'backup':
294 self.backup = not self.backup 297 self.backup = not self.backup
295 298
296 def clear_model(self, button=None): 299 def clear_model(self, _):
300 '''
301 Clear the whole list of files
302 '''
297 self.liststore.clear() 303 self.liststore.clear()
298 304
299 def all_if_empy(self, iterator): 305 def all_if_empy(self, iterator):