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


#import sys
#sys.path.append ("/usr/lib")
import faster_module_path

from optparse     import OptionParser
from rf_caras_one import RF_CARAS_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="RF CARAS One", help="Title of the window.")
  parser.add_option("--ch_title", dest="ch_title", default="RF", help="Name of RF channel.")

  (options, args) = parser.parse_args()

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

  ihm = RF_CARAS_One (args[0],
                      title         = options.title,
                      title_ch      = options.ch_title,
                      fixed_label   = options.fixed_label,
                      forceCounters = False)

  ihm.mainloop()

#

