29 lines
608 B
Python
Executable file
29 lines
608 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
#import pyGnuAss
|
|
|
|
class Main:
|
|
'main class for PythonGnuAssistant; test for necessary libaries'
|
|
import sys
|
|
|
|
try:
|
|
import pygtk
|
|
pygtk.require("2.0") #we want to use gtk2
|
|
except:
|
|
print "\nYou need \"pygtk\" to get this working."
|
|
print "In Debian do: apt-get install python2.3-gtk2\n"
|
|
sys.exit(1)
|
|
|
|
try:
|
|
import gtk
|
|
from gtk import glade
|
|
except:
|
|
print "\nYou need \"libglade\" to get this working."
|
|
print "In Debian do: apt-get install python2.3-glade2\n"
|
|
sys.exit(1)
|
|
|
|
import pyGnuAss
|
|
pga = pyGnuAss.PyGnuplotAssistant(gtk)
|
|
gtk.mainloop()
|
|
|
|
|