diff options
| author | jvoisin | 2011-07-30 21:47:31 +0200 |
|---|---|---|
| committer | jvoisin | 2011-07-30 21:47:31 +0200 |
| commit | 5715ba52f2238af513b0b87f4aa3c0158d2c84ba (patch) | |
| tree | e77829efd78b1473650a669546c3c11edc37932c /gui.py | |
| parent | c9cb00bdf702ce6663e78784de63dc6d35c3d875 (diff) | |
Documentation, and removal of unnecessary imports
Diffstat (limited to 'gui.py')
| -rw-r--r-- | gui.py | 14 |
1 files changed, 10 insertions, 4 deletions
| @@ -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 | |||
| 4 | import gtk | 7 | import gtk |
| 5 | import gobject | 8 | import 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): |
