#! /usr/bin/env python
# -*- coding: utf-8 -*-

import faster_module_path

import time

from optparse   import OptionParser
from jdb_hv_one import JDB_HV_One


if (__name__ == "__main__"):

  usage = "usage:\n   %prog --help\n   %prog [options] filename.cfg\n"

  parser = OptionParser(usage)

  parser.add_option("-f", "--fixed-label", action="store_true", dest="fixed_label", default=False, help="Labels aren't editable.")
  parser.add_option("-t", "--title", dest="title", default="JDB HV One", help="Title of the window.")

  (options, args) = parser.parse_args()

  if len(args) != 1:
    parser.error("incorrect number of arguments")
  #

  time.sleep (0.05)

  ihm = JDB_HV_One (args[0],
                    title         = options.title,
                    fixed_label   = options.fixed_label)

  ihm.mainloop()

#
