[turbine] Display the filename once the object has been saved



commit add4b3574ae690bc412dfc31f1743c39cdf75935
Author: Thomas Wood <thomas wood intel com>
Date:   Mon Sep 21 11:18:34 2009 +0100

    Display the filename once the object has been saved

 src/turbine/__init__.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/turbine/__init__.py b/src/turbine/__init__.py
index df279e0..1183a79 100755
--- a/src/turbine/__init__.py
+++ b/src/turbine/__init__.py
@@ -179,6 +179,10 @@ def handle_post(button, ui):
     f = open (folder + data['filename'] + '.c', 'w')
     f.write (template.c_template % data)
 
+    s = ui.get_object ('statusbar')
+    s.push (0, 'Object saved in "%(folder)s"' %
+               {'folder': folder + data['filename'] + '.{c,h}'})
+
 def guess_class_params (entry, ui):
 
     text = entry.get_text()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]