Beispiel #1
0
    def transition(self):
        conn = slobs.SlobsConnection(slobs.config_from_ini())

        async def main():
            await asyncio.gather(conn.background_processing(), transiton(conn))

        asyncio.run(main())
Beispiel #2
0
    def print_settings(self, source_id: str):
        conn = slobs.SlobsConnection(slobs.config_from_ini())

        async def main():
            await asyncio.gather(conn.background_processing(),
                                 print_settings(conn, source_id))

        asyncio.run(main())
Beispiel #3
0
    def change_source_file(self, source_id: str, filename: str):
        conn = slobs.SlobsConnection(slobs.config_from_ini())

        async def main():
            await asyncio.gather(conn.background_processing(),
                                 change_source_file(conn, source_id, filename))

        asyncio.run(main())
Beispiel #4
0
    def make_active(self, scene_id: str):
        conn = slobs.SlobsConnection(slobs.config_from_ini())

        async def main():
            await asyncio.gather(conn.background_processing(),
                                 make_active(conn, scene_id))

        asyncio.run(main())
Beispiel #5
0
    def stadio_mode(self):
        conn = slobs.SlobsConnection(slobs.config_from_ini())

        async def main():
            await asyncio.gather(conn.background_processing(),
                                 stadio_mode(conn))

        asyncio.run(main())
Beispiel #6
0
    def set_sceneitem_position(self, scene_id, item_id, x_pos, y_pos):
        conn = slobs.SlobsConnection(slobs.config_from_ini())

        async def main():
            await asyncio.gather(
                conn.background_processing(),
                set_sceneitem_position(conn, scene_id, item_id, x_pos, y_pos))

        asyncio.run(main())
Beispiel #7
0
    def set_sceneitem_size(self, scene_id, item_id, width, height):
        conn = slobs.SlobsConnection(slobs.config_from_ini())

        async def main():
            await asyncio.gather(
                conn.background_processing(),
                set_sceneitem_size(conn, scene_id, item_id, width, height))

        asyncio.run(main())