@qaganat1 · Post #1489 · 14.04.2023 г., 19:35
🇰🇬 Zhumashbek uulu Taiyrbek vs Minghu Liu 🇨🇳#AC2023#FS#Wrestling
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #381 · 23 окт.
Установить свойства виджета в PySide можно не только через соответствующие методы и конструктор класса. Можно их изменять с помощью метода setProperty по имени. btn = QPushButton("Click Me") btn.setProperty("flat", True) Это аналогично вызову btn.setFlat(True) Если указать несуществующее свойство, то оно просто создается btn.setProperty("btnType", "super") Получить его значение можно методом .property(name) btn_type = btn.property("btnType") Когда это может быть полезно? ▫️Можно просто хранить какие то данные в виджете и потом их доставать обратно widget = QWidget() widget.setProperty('my_data', 123) print(widget.property('my_data')) ▫️ Назначая эти свойства разным виджетам можно потом отличить виджеты во время итераци по ним. Например, найти все кнопки со свойством my_data="superbtn". Но ведь вместо кастомного свойства можно использовать objectName, будет тот же результат. Да, но y ObjectName есть ограничение - только строки. ▫️ Если нам потребуется не просто поиск а, например, сортировка по числу, то свойства позволяют нам это сделать. Поддерживается любой тип данных widget.setProperty('my_data', {'Key': 'value'}) widget.setProperty('order', 1) all_widgets.sort(key=w: w.property('order')) Но ведь Python позволяет всё вышеперечисленное сделать простым созданием атрибута у объекта widget.order = 1 widget.my_data = 123 Да, но я думаю что не надо объяснять почему не стоит так делать. К тому же, если у виджета нет свойства то метод .property(name) вернет None, а отсутствующий атрибут выбросит исключение. ▫️ Действительно полезное применение кастомным свойствам - контроль стилей. Здесь атрибутами не обойтись, нужны именно свойства. Дело в том, что в селекторах стилей можно указывать конкретные свойства виджетов на которые следует назначать стиль. Просто запустите этот код from PySide2.QtWidgets import * if __name__ == "__main__": app = QApplication([]) widget = QWidget(minimumWidth=300) layout = QVBoxLayout(widget) btn1 = QPushButton("Action 1") btn2 = QPushButton("Action 2") btn3 = QPushButton("Action 3", flat=True) layout.addWidget(btn1) layout.addWidget(btn2) layout.addWidget(btn3) # добавим кастомное свойство одной кнопке btn1.setProperty("btnType", "super") # добавляем стили widget.setStyleSheet( """ QPushButton[btnType="super"] { background-color: yellow; color: red; } QPushButton[flat="true"] { color: yellow; } """ ) widget.show() app.exec_() С помощью селектора мы избирательно назначили стили на конкретные кнопки. Как получить список всех кастомный свойств? Функция получения списка кастомных свойств отличается от получения дефолтных. def print_widget_dyn_properties(widget): for prop_name in widget.dynamicPropertyNames(): property_name = prop_name.data().decode() property_value = widget.property(property_name) print(f"{property_name}: {property_value}") #tricks#qt
Пребарај: #wrestling
@qaganat1 · Post #1489 · 14.04.2023 г., 19:35
🇰🇬 Zhumashbek uulu Taiyrbek vs Minghu Liu 🇨🇳#AC2023#FS#Wrestling
Hashtags
@bjjfanaticsinstructionals · Post #1772 · 27.02.2025 г., 00:29
😁The Beloglazov Wrestling System By Sergei Beloglazov😁 ➡️Join One of The Most Iconic and Successful Freestyle Wrestlers of a Generation for a Master Class On Control Tie Offense, Featuring 2-Time Olympic Gold Medalist Sergei Beloglazov ➡️2-Time Olympic Gold medalist and 6-Time World Champion Sergei Beloglazov is widely regarded as one of the best freestyle wrestlers of all time and his coaching methods are utilized by thousands of wrestlers around the world ➡️Learn the essential details of collar tie offense, Russian tie tactics, popper use of the underhook, and dominate with the arm drag all in one densely packed series under the guidance of one of wrestling's most iconic figures $79😍$9.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #BjjFanatics#Wrestling#SergeiBeloglazov 💁♀️Buy 💁♀️
@bjjfanaticsinstructionals · Post #1860 · 16.09.2025 г., 22:57
😁The Grappling Continuum: Wrestling Techniques, Jiu Jitsu Purpose. Part 1: Fundamental Tie Ups & Finishing Strong by Zack Esposito, Shawn Williams, and Warren Stout😁 ➡️This instructional is designed specifically to integrate the critical elements of wrestling into your Jiu-Jitsu game, whether you're a beginner or an advanced practitioner. ➡️Shawn Williams has distilled his years of experience both as a student and teacher of the Gracie family’s Brazilian Jiu-Jitsu and combined it with high-level wrestling techniques that will enhance your positional control, takedowns, and ground game. $147😍$14.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #ShawnWilliams#Wrestling#NoGi#Takedowns 💁♀️Buy 💁♀️
@bjjfanaticsinstructionals · Post #1859 · 16.09.2025 г., 22:55
😁Unstoppable Defense: Mastering Takedown Prevention by Steve Mocco😁 ➡️Take your wrestling skills to the next level with "Unstoppable Defense: Mastering Takedown Prevention" by Steve Mocco, a two-time NCAA National Champion and Olympian ➡️This comprehensive instructional guide is designed to help wrestlers of all levels master the art of takedown defense, ensuring you stay on your feet and in control. $79😍$9.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #SteveMocco#Wrestling#NoGi#Takedowns 💁♀️Buy 💁♀️
@bjjfanaticsinstructionals · Post #1832 · 20.06.2025 г., 21:04
😁Rides & Escapes Course by Jordan Preisinger and Joe Breza😁 ➡️Use wrestling rides to control, submit, and break free in Jiu-Jitsu! ➡️Wrestling rides are the key to the next level of your BJJ ground game but not a lot of people use them so once you do, you'll have an edge over your teammates who only use Jiu-Jitsu. You'll keep them on the ground, stay on top & submit them... Much more easily. ̶$̶149😍$14.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #JordanTeachesJiuJitsu#Wrestling#Drills#NoGi 💁♀️Buy 💁♀️
@gojirajj · Post #1575 · 27.09.2024 г., 15:30
Тренировка средней группы,отработка из закрытого гарда💪 #brazilianjiujitsu#grapplinggi#wrestling#jiujitsu#training
@gojirajj · Post #1557 · 20.09.2024 г., 06:55
Кимура/кимура свип🔥 #brazilianjiujitsu#jiujitsu#grappling#wrestling#джиуджитсу#бразильскоеджиуджитсу
@WangZhuanZhan · Post #33879 · 09.10.2024 г., 05:16
S-s摔s跤j吧b- 摔跤吧!爸爸 Dangal (2016) 直达链接:https://pan.quark.cn/s/8d62415f165c #摔跤吧!爸爸 #Dangal #我和我的冠军女儿 #打死不离3父女#दंगल #摔跤吧!老爸 #摔跤家族 #Wrestling Competition 链接:https://link3.cc/sf_com #电影#喜剧#印度#10年代