#!/usr/bin/env python # Bender Lab Animal Colony Database Management System import debug if __name__ == "__main__": """Starts UVW and initiates event loop.""" import sys, getopt options, args = getopt.getopt(sys.argv[1:], 'd:') for opt in options: letter, value = opt if (letter == '-d'): debug.level = int(value) print 'Debug level %d' % debug.level import gui uvw=gui.UVW('test.db') uvw.root.mainloop()