def run(self):
     self.call_handler = CallHandler(self)
     self.__program_handler = ProgramHandler(self.db, self)
     self.__program_handler.run()
     while True:
         time.sleep(1)
     return
Пример #2
0
 def __init__(self, station, db, logger):
     self.logger = logger
     self.db = db
     self.station = station
     self.id = station.id
     self.__program_handler = ProgramHandler(self)
     self.call_handler = CallHandler(self)
     self.__community_handler = CommunityIVRMenu(self)
     self.logger.info("Starting up station {0}".format(self.station.name))
     return
Пример #3
0
    def __init__(self, station, db, logger):
        self.logger = logger
        self.db = db
        self.station = station
        self.id = station.id
        self.__program_handler = ProgramHandler(self)
        self.call_handler = CallHandler(self)
        community_menu_gw = self.__get_gateway_used()
        if community_menu_gw is not None:
            self.call_handler.register_community_ivr_number(
                str(community_menu_gw)[-9:])
        #self.__community_handler = CommunityIVRMenu(self)

        self.logger.info("Starting up station {0}".format(self.station.name))
        return
Пример #4
0
    def __init__(self):
        QWidget.__init__(self, flags=Qt.Widget)
        self.layout_1 = QBoxLayout(QBoxLayout.LeftToRight, self)
        self.layout_2 = QBoxLayout(QBoxLayout.LeftToRight)
        self.layout_3 = QBoxLayout(QBoxLayout.TopToBottom)
        self.layout_1.addLayout(self.layout_2)
        self.layout_1.addLayout(self.layout_3)
        self.web = QWebEngineView()
        self.pb_1 = QPushButton("Move")
        self.pb_1.clicked.connect(self.move)

        #Link web page to CallHandler object
        channel = QWebChannel(self.web.page())
        self.web.page().setWebChannel(channel)
        self.handler = CallHandler(self.move_js)
        channel.registerObject('handler', self.handler)  # js

        self.setLayout(self.layout_1)
        self.init_widget()