diff options
| author | jvoisin | 2012-02-19 16:04:27 +0100 |
|---|---|---|
| committer | jvoisin | 2012-02-19 16:04:27 +0100 |
| commit | 8a110652634824c83b7c27d89cfc29d7d9435e2c (patch) | |
| tree | fc63ca6b5122804257793aa6ee7ef3902d94eddb /mat-gui | |
| parent | 81ac27d15f13c5d386e608af088e2e540c227519 (diff) | |
Add an (awesome) logo to the MAT
Diffstat (limited to 'mat-gui')
| -rwxr-xr-x | mat-gui | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,5 +1,6 @@ | |||
| 1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
| 2 | #charset utf-8 | 2 | # -*- coding: utf-8 -* |
| 3 | |||
| 3 | 4 | ||
| 4 | ''' | 5 | ''' |
| 5 | Metadata anonymisation toolkit - GUI edition | 6 | Metadata anonymisation toolkit - GUI edition |
| @@ -52,6 +53,7 @@ class GUI: | |||
| 52 | self.window.set_title('Metadata Anonymisation Toolkit') | 53 | self.window.set_title('Metadata Anonymisation Toolkit') |
| 53 | self.window.connect('destroy', gtk.main_quit) | 54 | self.window.connect('destroy', gtk.main_quit) |
| 54 | self.window.set_default_size(800, 600) | 55 | self.window.set_default_size(800, 600) |
| 56 | self.window.set_icon(gtk.gdk.pixbuf_new_from_file_at_size("logo.png", 50, 50)) | ||
| 55 | 57 | ||
| 56 | self.accelerator = gtk.AccelGroup() | 58 | self.accelerator = gtk.AccelGroup() |
| 57 | self.window.add_accel_group(self.accelerator) | 59 | self.window.add_accel_group(self.accelerator) |
| @@ -375,13 +377,15 @@ class GUI: | |||
| 375 | ''' | 377 | ''' |
| 376 | w = gtk.AboutDialog() | 378 | w = gtk.AboutDialog() |
| 377 | w.set_authors(['Julien (jvoisin) Voisin', ]) | 379 | w.set_authors(['Julien (jvoisin) Voisin', ]) |
| 380 | w.set_artists(['Marine BenoƮt', ]) | ||
| 378 | w.set_copyright('GNU Public License v2') | 381 | w.set_copyright('GNU Public License v2') |
| 379 | w.set_comments(_('This software was coded during the GSoC 2011')) | 382 | w.set_comments(_('This software was coded during the GSoC 2011')) |
| 380 | #w.about.set_logo(gtk.gdk.pixbuf_new_from_file(LOGO)) | 383 | w.set_logo(gtk.gdk.pixbuf_new_from_file_at_size('logo.png', 400, 200)) |
| 381 | w.set_program_name('Metadata Anonymisation Toolkit') | 384 | w.set_program_name('Metadata Anonymisation Toolkit') |
| 382 | w.set_version(mat.__version__) | 385 | w.set_version(mat.__version__) |
| 383 | w.set_website('https://mat.boum.org') | 386 | w.set_website('https://mat.boum.org') |
| 384 | w.set_website_label(_('Website')) | 387 | w.set_website_label(_('Website')) |
| 388 | w.set_position(gtk.WIN_POS_CENTER) | ||
| 385 | click = w.run() | 389 | click = w.run() |
| 386 | if click: | 390 | if click: |
| 387 | w.destroy() | 391 | w.destroy() |
