[Bio] / Speck / DotViewer.py Repository:
ViewVC logotype

Annotation of /Speck/DotViewer.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (view) (download) (as text)

1 : sheradon 1.1 #!/usr/bin/env python
2 :    
3 :     from Speck.DotCanvas import DotCanvas
4 :     from wxPython.wx import *
5 :    
6 :     if len(sys.argv) > 1: fn = sys.argv[1]
7 :     else:
8 :     print 'Usage: %s <filename.dot>' % sys.argv[0]
9 :     sys.exit(-1)
10 :     app = wxPySimpleApp()
11 :     win = wxFrame(None, wxID_ANY, 'Speck DOT viewer', size = (640, 480))
12 :     DotCanvas(win, file(fn).read())
13 :     win.Show(True)
14 :     app.MainLoop()
15 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3