示例#1
0
 def __init__(self, ctx, ui_class):
     self.ctx = ctx
     if values.MRI_DIR is None:
         values.set_mri_dir(ctx)
     self.config = Config(ctx)
     self.config.property_only = False
     self.web = mytools_Mri.web.create_IDL_opener(self, self.config, self.config.ref_by_doxygen)
     self.engine = engine.MRIEngine(ctx)
     self.history = RootEntry()
     self.current = self.history
     self.cg = CodeGenerator(self.config.code_type, False, True)
     self.mode = True
     self.open_new = False
     self.macros = mytools_Mri.macros.Macros(self)
     self.ui = ui_class(ctx, self)