示例#1
0
	dialog.set_markup(message)
	dialog.run()
	dialog.hide()
	sys.exit(1)

if __name__ == "__main__":

	sys.excepthook = excepthook

	name = "parano"
	gettext.install(name, unicode=1)
	gtk.glade.bindtextdomain(name)
	gtk.glade.textdomain(name)

	# (longName, shortName, type , default, flags, descrip , argDescrip)
	table=[
		("quiet"  , 'q'   , None ,   None  , 0    , 'Do not print any message on stdout'   , ""),
	]

	gnome.init(NAME, VERSION, gnome.libgnome_module_info_get()) 
	
	leftover, argdict = gnome.popt_parse(sys.argv, table)

	if argdict["quiet"]: option_quiet = True
		
	log( NAME +" "+ VERSION)
	log(DATADIR)

	parano = Parano(leftover)
	parano.main()
示例#2
0
    dialog.hide()
    sys.exit(1)


if __name__ == "__main__":

    sys.excepthook = excepthook

    name = "parano"
    gettext.install(name, unicode=1)
    gtk.glade.bindtextdomain(name)
    gtk.glade.textdomain(name)

    # (longName, shortName, type , default, flags, descrip , argDescrip)
    table = [
        ("quiet", 'q', None, None, 0, 'Do not print any message on stdout',
         ""),
    ]

    gnome.init(NAME, VERSION, gnome.libgnome_module_info_get())

    leftover, argdict = gnome.popt_parse(sys.argv, table)

    if argdict["quiet"]: option_quiet = True

    log(NAME + " " + VERSION)
    debug("datadir: " + DATADIR)

    parano = Parano(leftover)
    parano.main()