Ejemplo n.º 1
0
 def __init__(self, settings_file=None, *args, **kwargs):
     '''
     init
     '''
     BaseController.__init__(self,
                             settings_file=settings_file,
                             *args,
                             **kwargs)
     # Setup Default value
     self.flash_params = []
     self.dialog = ConsoleDialog()
     if len(self.baseUrl) == 0:
         self.baseUrl = 'https://pvtbuilds.mozilla.org/pvt/mozilla.org/b2gotoro/nightly/'
     if len(self.destRootFolder) == 0:
         self.destRootFolder = 'pvt'
     self.destFolder = ''
     self.target_device = ''
     self.target_serial = ''
     self.target_branch = ''
     self.target_build = ''
     self.target_build_id = ''
     self.target_keep_profile = False
     # Load options from input argvs
     self.options = Parser.pvtArgParse(sys.argv[1:])
     self._load_options()
Ejemplo n.º 2
0
 def __init__(self):
     BaseController.__init__(self)
     self.rpm_lstm_obj = None
     self.oiltemp_lstm_obj = None
     self.y_hat, self.y_gt, self.gh_err = list(), list(), list()
     self.reset()
     self.chart_type = 0
     self.chart_type_list = [self.rpm_lstm_obj, self.oiltemp_lstm_obj]
Ejemplo n.º 3
0
 def __init__(self, settings_file=None, *args, **kwargs):
     '''
     Generate base frame and each page, bind them in a list
     '''
     BaseController.__init__(self, settings_file=settings_file, *args, **kwargs)
     self.root = Tk()
     self.frames = []
     container = Frame(master=self.root)
     container.grid_rowconfigure(0, weight=1)
     container.grid_columnconfigure(0, weight=1)
     container.pack(side="top", fill="x", expand=False)
     self.container = container
Ejemplo n.º 4
0
 def __init__(self, settings_file=None, *args, **kwargs):
     '''
     Generate base frame and each page, bind them in a list
     '''
     BaseController.__init__(self, settings_file=settings_file, *args, **kwargs)
     self.root = Tk()
     self.frames = []
     container = Frame(master=self.root)
     container.grid_rowconfigure(0, weight=1)
     container.grid_columnconfigure(0, weight=1)
     container.pack(side="top", fill="x", expand=False)
     self.container = container
 def __init__(self, *args, **kwargs):
     '''
     init
     '''
     BaseController.__init__(self, *args, **kwargs)
     # Setup Default value
     self.flash_params = []
     self.dialog = ConsoleDialog()
     if len(self.baseUrl) == 0:
         self.baseUrl = 'https://pvtbuilds.mozilla.org/pvt/mozilla.org/b2gotoro/nightly/'
     if len(self.destRootFolder) == 0:
         self.destRootFolder = 'pvt'
     self.destFolder = ''
     self.target_device = ''
     self.target_branch = ''
     self.target_build = ''
     self.target_build_id = ''
     # Load options from input argvs
     self.options = Parser.pvtArgParse(sys.argv[1:])
     self._load_options()