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

Пребарај: #cryosurgery

当前筛选 #cryosurgery清除筛选

A South African Medical Pioneer: Dr. Selig Percy Amoils Did you know that Dr. Selig Percy Amoils, born in 1933 in Johannesburg, revolutionized eye surgery with his invention of the retinal cryoprobe? 👁‍🗨 Here are some fascinating facts about him: 🔬 Innovator in Ophthalmology: In 1965, Dr. Amoils developed the retinal cryoprobe, a device that uses extreme cold to treat eye conditions like cataracts and retinal detachments. This groundbreaking tool is still widely used in ophthalmology and gynecology today. 🏅 National Recognition: In 2006, he was awarded the Silver Order of Mapungubwe, one of South Africa's highest honors, for his exceptional contributions to medicine and science. 👶Early Inventor: Dr. Amoils began inventing at the age of 18, with his first creation being a modified jet engine. Let's celebrate the achievements of this remarkable South African innovator! 🇿🇦 #SeligPercyAmoils#SouthAfricanInnovation#MedicalPioneer#Ophthalmology#Cryosurgery#AfricaDay