Example #1
0
def showDotInXDot(buf):
    try:
        import gtk, thread
        from xdot import DotWindow

        win = DotWindow()
        win.connect('destroy', Gtk.main_quit)
        win.set_filter("dot")
        win.set_dotcode(buf)
        try:
            thread.start_new_thread(Gtk.main, None)
        except:
            pass
    except ImportError:
        print "Python-GTK is not installed"
Example #2
0
def showDotInXDot(buf):
    try:    
        import gtk, thread
        from xdot import DotWindow
        
        win = DotWindow()
        win.connect('destroy', gtk.main_quit)
        win.set_filter("dot")
        win.set_dotcode(buf)
        try:
            thread.start_new_thread(gtk.main, None)
        except:
            pass
    except ImportError:
        print "Python-GTK is not installed"