TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #45 · 2 мар.

В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов. widget.setWindowFlags(Qt.Window) Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов. Несколько флагов можно указать с помощью оператора "|" list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) исключить флаг из уже имеющегося набора можно так list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled) Добавить новый флаг к имеющимся можно так list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled) А проверка наличия делается так is_enabled = item.flags() & Qt.ItemIsEnabled > 0 Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте. #qt

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #digitalcouncil

当前筛选 #digitalcouncil清除筛选
AI & Law

@ai_and_law · Post #79 · 09.08.2023 г., 07:04

Exploring Generative AI's Impact: Insights from France's Digital Council Hello, everyone. The French Digital Council, the advisory commission, working closely with the French government, issued a press-release which brings to the forefront their commitment to not just understanding AI, but also proposing strategies for its harmonious integration into our lives. The Council acknowledges the intricate connection between generative AI and vital aspects of our societies, ranging from knowledge construction and privacy to the representation of the world itself. The FDC has engaged with AI experts from both academia and industry, including influential figures like Laure Soulier from Sorbonne University and Thomas Wolf, co-founder of Hugging Face. Active participation in AI-focused events and insightful media interviews further underscore the Council's commitment to understanding and sharing knowledge about the evolving AI landscape. #GenerativeAI#DigitalCouncil#AIInSociety#EthicsInAI#InnovationInTech