Пример #1
0
    def __init__(self, parent=None, conf=None, dbname=None, **kwds):

        self.config = InstrumentConfig(name=conf)
        self.db, self.dbname = self.connect_db(dbname)
        if self.db is None:
            return

        self.epics_pvs = {}
        self.connected = {}
        self.panels = {}
        self.epics_server = None

        self.server_timer = None
        wx.Frame.__init__(self,
                          parent=parent,
                          title='Epics Instruments',
                          size=(925, -1),
                          **kwds)

        self.pvlist = EpicsPVList(self)

        self.colors = GUIColors()
        self.SetBackgroundColour(self.colors.bg)

        wx.EVT_CLOSE(self, self.onClose)
        self.create_Statusbar()
        self.create_Menus()
        self.create_Frame()
        self.enable_epics_server()