diff -ur python/ChangeLog ../ldtp/python/ChangeLog
--- python/ChangeLog	2007-09-03 19:30:36.000000000 +0530
+++ ../ldtp/python/ChangeLog	2007-11-09 13:43:39.000000000 +0530
@@ -1,3 +1,7 @@
+2007-11-09  Harishankaran K <sp2hari@gmail.com?
+	
+	* ldtpeditor: Implemented the code for Play button.
+
 2007-09-03  Nagappan A  <anagappan@novell.com>
 
 	* ldtprunner, *.py, ldtpcodegen, ldtprecord: Updated all the files
diff -ur python/ldtpeditor ../ldtp/python/ldtpeditor
--- python/ldtpeditor	2007-10-17 19:02:51.000000000 +0530
+++ ../ldtp/python/ldtpeditor	2007-11-09 03:00:44.000000000 +0530
@@ -83,6 +83,7 @@
                 "on_convert_clicked" : self.convert_clicked,
                 "on_save_clicked" : self.save_clicked,
                 "on_startstop_clicked" : self.record_clicked , 
+                "on_play_clicked" : self.play_clicked, 
                 "on_txtRecordedCode_copy_clipboard" : self.on_txtRecordedCode_copy_clipboard, 
                 "on_txtRecordedCode_cut_clipboard" : self.on_txtRecordedCode_cut_clipboard, 
                 "on_txtRecordedCode_paste_clipboard" : self.on_txtRecordedCode_paste_clipboard}
@@ -188,6 +189,18 @@
             self.btnSave.set_sensitive (True)
             self.btnConvert.set_sensitive (True)
 
+    def play_clicked (self, widget):
+        start,  end = self.generatedCodeView.get_bounds ()
+        generatedCode = ''
+        if end == start:
+            start, end = self.recordedCodeView.get_bounds ()
+            generatedCode = self.recordedCodeView.get_text (start, end)
+        else:
+            generatedCode = self.generatedCodeView.get_text (start, end)
+    
+        global app
+        thread.start_new_thread (app.playback, (generatedCode, ))
+        
     def save_clicked (self, widget):
         if self.fileName is None:
             self.save_as ()
@@ -323,6 +336,9 @@
     def callbackFunc (self, recordedData):
         if self.recording == True:
             self.recordedCodeView.insert (self.recordedCodeView.get_end_iter (), recordedData)
+        
+    def playback(self, generatedLDTPScript):
+        exec generatedLDTPScript;
 
 try:
     # we start the app like this...
Only in ../ldtp/python/ldtplib: acss.pyc
Only in ../ldtp/python/ldtplib: atspi.pyc
Only in ../ldtp/python/ldtplib: debug.pyc
Only in ../ldtp/python/ldtplib: __init__.pyc
Only in ../ldtp/python/ldtplib: ldtpcommon.pyc
Only in ../ldtp/python/ldtplib: ldtplibutils.pyc
Only in ../ldtp/python/ldtplib: ldtprecorder.pyc
Only in ../ldtp/python/ldtplib: libldtpcodegen.pyc
Only in ../ldtp/python/ldtplib: Makefile
Only in ../ldtp/python/ldtplib: orca_i18n.pyc
Only in ../ldtp/python/ldtplib: rolenames.pyc
Only in ../ldtp/python/ldtplib: settings.pyc
Only in ../ldtp/python/: ldtp.pyc
Only in ../ldtp/python/: ldtputils.pyc
Only in ../ldtp/python/: Makefile
