Commits

Moises Henriquez committed c520a56

Deleted un-used outsample.py

Comments (0)

Files changed (2)

vpackager/message.py

         self.set_markup(text)
         self.set_title(_('For Your Information'))
 
-
 class Warning(gtk.MessageDialog):
     """ Warning dialog box."""
     def __init__(self, text, parent = None):

vpackager/outsample.py

-#!/usr/bin/env python
-
-import subprocess as sp
-import gtk
-import glib
-
-class CommandTextView(gtk.TextView):
-    """ Nice textview to display the output of shell processes"""
-    def __init__(self, command):
-        gtk.TextView.__init__(self)
-        self.command = command
-
-    def run(self):
-        proc = sp.Popen(self.command.split(), 
-                stdout=sp.PIPE, stderr=sp.STDOUT)
-        glib.io_add_watch(proc.stdout,
-                glib.IO_IN,
-                self.write_to_buffer)
-
-    def write_to_buffer(self, fd, condition):
-        if condition is glib.IO_IN:
-            char = fd.read(1)
-            gtk.gdk.threads_enter()
-            buf = self.get_buffer()
-            buf.insert_at_cursor(char)
-            gtk.gdk.threads_leave()
-            return True
-        else:
-            return False
-
-def main():
-    ctv = CommandTextView('find /home/vluser/')
-    win = gtk.Window(gtk.WINDOW_TOPLEVEL)
-    win.connect('delete-event', gtk.main_quit)
-    win.connect('destroy', gtk.main_quit)
-    win.set_size_request(200,300)
-    win.add(ctv)
-    win.show_all()
-    ctv.run()
-    gtk.main()
-
-if __name__ == '__main__':
-    gtk.gdk.threads_init()
-#    gtk.gdk.threads_enter()
-    main()