#!/usr/bin/python
 
# main.py -- code for calling the setting up the qt program
#
# Copyright (c) Adam Tenderholt, Stanford University, 2005-2006
#                               a-tenderholt@stanford.edu
#
# This program is free software; you can redistribute it and/or modify  
# it under the terms of the GNU General Public License as published by 
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version with the exceptions noted in the 
# Help dialog.

import sys
from os.path import exists

from PyQt4 import QtGui
import qmforge
from qmforge.qmforge import *
            
if __name__=="__main__":
    app=QtGui.QApplication(sys.argv)
    window=QMForge()
    window.resize(800,600)
    window.show()
    
    if len(sys.argv)==2 and exists(sys.argv[1]):
        window.open(sys.argv[1])
        
    sys.exit(app.exec_())

