source: sans/utils/bt5/icpgui/test-terminal.py @ 140

Last change on this file since 140 was 140, checked in by ajj, 15 years ago

Adding code for testing terminal embedding

  • Property svn:executable set to *
File size: 328 bytes
Line 
1#!/usr/bin/python
2
3import pygtk
4pygtk.require('2.0')
5import gtk, vte
6
7window = gtk.Window()
8window.resize(600,700)
9window.show()
10
11term  = vte.Terminal()
12pid   = term.fork_command('icp')
13term.set_emulation('xterm')
14term.show()
15
16window.add(term)
17window.show_all()
18window.connect("destroy", lambda w: gtk.main_quit())
19gtk.main()
20
21
Note: See TracBrowser for help on using the repository browser.