How to use the gbulb.install function in gbulb

To help you get started, we’ve selected a few gbulb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github beeware / toga / src / gtk / toga_gtk / app.py View on Github external
def __init__(self, interface):
        self.interface = interface
        self.interface._impl = self

        gbulb.install(gtk=True)
        self.loop = asyncio.get_event_loop()

        self.create()
github cyanogen / uchroma / uchroma / server / server.py View on Github external
def __init__(self):
        gbulb.install()

        parser = argparse.ArgumentParser(description='UChroma daemon')
        parser.add_argument('-v', "--version", action='version', version='self.version')
        parser.add_argument('-d', "--debug", action='append_const', const=True,
                            help="Increase logging verbosity")
        parser.add_argument('-C', "--colorlog", action='store_true',
                            help="Use colored log output")

        args = parser.parse_args()


        self._loop = asyncio.get_event_loop()

        level = logging.INFO
        asyncio_debug = False
        colorlog = False