Example #1
0
 	python main.py [OPTION...] [FILE...]

	Help Options:
	  -h, --help                        Show help options

	Application Options:
	  -V, --version                     Show the application's version
	"""


# MAIN
if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    app.setStyle("windows")
    if len(sys.argv) is 1:
        # TODO:show unitary view
        myapp = PreviewView(".")
    elif len(sys.argv) is 2:
        if sys.argv[1].startswith("-"):
            analysis(sys.argv[1])
            exit(0)
        else:
            if os.path.isdir(sys.argv[1]):
                myapp = PreviewView(sys.argv[1])
            elif os.path.isfile(sys.argv[1]):
                myapp = SingleView(sys.argv[1])
    elif len(sys.argv) > 2:
        print_help()
    myapp.show()
    sys.exit(app.exec_())
Example #2
0
	def click_preview(self):
		self.close()
		from PreView import PreviewView
		pre_view = PreviewView(self.floder_name+"/")
		pre_view.exec_()