codekasten/WKNcharts/WknCharts.py

30 lines
505 B
Python
Raw Normal View History

2006-06-07 11:03:58 +02:00
#!/usr/bin/env python
__version__="0.3"
__author__="AGE"
__date__="02006-06-07"
class WknCharts:
import sys
def __init__(self):
try:
import pygtk
pygtk.require("2.0")
import gtk
from gtk import glade
except:
print "dumme fehlermeldung"
sys.exit(1)
import wknGUI
wg = wknGUI.WknGUI(gtk)
# this is necessary for using threads in "wg"
2006-06-09 14:05:30 +02:00
gtk.gdk.threads_init()
2006-06-10 14:18:28 +02:00
gtk.gdk.threads_enter()
2006-06-07 11:03:58 +02:00
gtk.main()
2006-06-10 14:18:28 +02:00
gtk.gdk.threads_leave()
2006-06-07 11:03:58 +02:00
if __name__ == "__main__":
wc = WknCharts()