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 слични објави

Пребарај: #bandgap

当前筛选 #bandgap清除筛选

Опубликована новая статья 🟣 2024 🟣 V. 11 🟣 Issue 2 🟣 Art. 202411207 🟣 Letter 🟣 📜 Features of electronic states in the vicinity of band gap and atomic structure of Ta- and Nb-doped Li7La3Zr2O12 👩‍🎓👨‍🎓 M. I. Vlasov (http://orcid.org/0000-0002-7814-7489), E.A. Surzhikov (http://orcid.org/0009-0005-3466-6374), A.Yu. Germov (http://orcid.org/0000-0001-6091-1250), E.A. Il'ina (http://orcid.org/0000-0003-1759-5234), I.A. Weinstein (http://orcid.org/0000-0002-5573-7128) 🏛 Institute of High Temperature Electrochemistry of the Ural Branch of the Russian Academy of Sciences, https://ihte.ru/?page_id=3106 🏛 Ural Federal University, https://urfu.ru/en 🏛 M.N. Mikheev Institute of Metal Physics of the Ural Branch of the Russian Academy of Sciences, https://www.imp.uran.ru/?q=en 🏛 Institute of Metallurgy of the Ural Branch of the Russian Academy of Sciences, http://www.imet-uran.ru 📚#Li7La3Zr2O12#Ta#Nb#doping#bandgap#oxygen#vacancies 🔗https://doi.org/10.15826/chimtech.2024.11.2.07 https://journals.urfu.ru/index.php/chimtech/article/view/7692