Ejemplo n.º 1
0
    def OnInit(self):
        options = GetOptions()
        if not options["ac_id"]:
            Usage(sys.argv[0])
            sys.exit("Error: Please specify at least one aircraft ID.")
        self.main = settingsframe.create(None, options["ac_id"])
        self.main.Show()
        self.SetTopWindow(self.main)

        return True
    def OnInit(self):
        options = GetOptions()
        if not options['ac_id']:
            Usage(sys.argv[0])
            sys.exit("Error: Please specify at least one aircraft ID.")
        self.main = settingsframe.create(None, options['ac_id'])
        self.main.Show()
        self.SetTopWindow(self.main)

        return True
Ejemplo n.º 3
0
    def OnInit(self):
        options = GetOptions()
        if len(options['ac_id']) > 0:
            ac_ids = options['ac_id']
        else:
            ac_ids = DEFAULT_AC_IDS
        self.main = settingsframe.create(None, ac_ids)
        self.main.Show()
        self.SetTopWindow(self.main)

        return True
Ejemplo n.º 4
0
    def OnInit(self):
        options = GetOptions()
        if len(options['ac_id']) > 0:
            ac_ids = options['ac_id']
        else:
            ac_ids = DEFAULT_AC_IDS
        self.main = settingsframe.create(None, ac_ids)
        self.main.Show()
        self.SetTopWindow(self.main)

        return True