aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSARL ENR-68 <david@david.david>2014-04-19 08:10:38 +0200
committerSARL ENR-68 <david@david.david>2014-04-19 08:10:38 +0200
commit67e8a62e7737924a3373901b5940f167996b98be (patch)
treed2bdd471710da61eb401c7d390e1bb2579e14926 /lib
parent6cb521237cc707a7b229afd207ca8ccbe9708de7 (diff)
downloadisodumper-67e8a62e7737924a3373901b5940f167996b98be.tar
isodumper-67e8a62e7737924a3373901b5940f167996b98be.tar.gz
isodumper-67e8a62e7737924a3373901b5940f167996b98be.tar.bz2
isodumper-67e8a62e7737924a3373901b5940f167996b98be.tar.xz
isodumper-67e8a62e7737924a3373901b5940f167996b98be.zip
added an about isodumper window "GtkAboutDialog"
- add an about button on Main window - add about script on isodumper.py
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 69db240..ccd2b65 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -65,7 +65,6 @@ class IsoDumper:
self.chooser.set_filter(filt)
# optionnal backup of the device
-
self.backup_select = self.wTree.get_widget("backup_select")
self.backup_name = self.wTree.get_widget("backup_name")
self.backup = self.wTree.get_widget("backup")
@@ -86,6 +85,7 @@ class IsoDumper:
"on_backup_toggled" : self.enable_backup,
"on_backup_select_clicked" : self.backup_sel,
"on_select_clicked" : self.backup_choosed,
+ "on_about_button_clicked" : self.about,
"on_write_button_clicked" : self.do_write}
self.wTree.signal_autoconnect(dict)
@@ -136,8 +136,7 @@ class IsoDumper:
exit_dialog=exit_dialog+".iso"
self.backup_select.set_label(exit_dialog)
self.choose.hide()
-
-
+
def do_write(self, widget):
write_button = self.wTree.get_widget("write_button")
write_button.set_sensitive(False)
@@ -185,7 +184,7 @@ class IsoDumper:
self.success()
else:
self.close('dummy')
-
+
def do_umount(self, target):
mounts = self.get_mounted(target)
if mounts:
@@ -341,6 +340,15 @@ class IsoDumper:
if widget.get_expanded():
gobject.timeout_add(130, lambda: self.window.reshow_with_initial_size())
+ def about(self, widget):
+ about_button = self.wTree.get_widget("about_button")
+ about_button.set_sensitive(True)
+ dialog = self.wTree.get_widget("about_dialog")
+ resp = dialog.run()
+ if resp:
+ dialog.destroy()
+ #exit(0)
+
if __name__ == "__main__":
app = IsoDumper()
gtk.main()