Ejemplo n.º 1
0
def main():
    options = parseOptions()
    if options.debug:
        level = DEBUG
    else:
        level = INFO
    setupStdoutLog(level)
    server = Server('0.0.0.0', options.port, options.debug)
    server.main()
Ejemplo n.º 2
0
    def __init__(self, app):
        QMainWindow.__init__(self)
        self.options = self.parseOptions()

        if self.options.debug:
            level = DEBUG
        elif self.options.verbose:
            level = INFO
        else:
            level = ERROR
        setupStdoutLog(level)

        self.app = app
        self.async_response = AsyncReponse()
        self.pages = []
        self.client = QtClient(self)
        self.setup()
        self.createWidgets()