@kizlyarsupreme · Post #1262 · 28.02.2025 г., 12:01
Combat от Kizlyar Supreme Модель создана на основе Vector с более коротким клинком. Прототип можно посмотреть и подержать в руках на выставке. #Expo#Combat
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #380 · 21 окт.
Регулярно приходится писать и ревьюить код, где используется PySide2-6. Заметил, что в подавляющем большинстве случаев настройка создаваемых базовых виджетов происходит через методы. Думаю, всем знаком такой способ. Простой пример с кнопкой: button = QPushButton("Click Me") button.setMinimumWidth(300) button.setFlat(True) button.setStyleSheet("font-size: 20pt") button.setToolTip("Super Button") button.clicked.connect(lambda: print("Button clicked")) Но есть и альтернативный способ - настройка через свойства. Это просто ключевые аргументы конструктора класса. Хоть они и не указаны в документации как аргументы, но они есть) Этот код делает тоже самое но с помощью Property button = QPushButton( "Click Me", minimumWidth=300, flat=True, styleSheet="font-size: 20pt", toolTip="Super Button", clicked=lambda: print("Button clicked"), ) Где это может быть полезно ▫️ Это выглядит более аккуратно и коротко, уже повод использовать ▫️ Может использоваться в заполнении лейаута, когда нам не нужно никакое другое взаимодействие с виджетом и поэтому сохранять его в переменную не требуется. Например, лейбл или кнопка. widget = QWidget(minimumWidth=400) layout = QHBoxLayout(widget) layout.addWidget(QLabel("Button >", alignment=Qt.AlignRight)) layout.addWidget(QPushButton("Click Me", clicked=lambda: print("Button clicked"))) widget.show() Либо так widget = QWidget(minimumWidth=400) layout = QHBoxLayout(widget) for wd in ( QLabel("Button >", alignment=Qt.AlignRight), QPushButton("Click Me", clicked=lambda: ...) ): layout.addWidget(wd) widget.show() ▫️ Можно хранить настройки в каком-то конфиге или генерировать на лету, после чего передавать как kwargs. kwargs = {"text": "Hello " * 30, "wordWrap": True} my_label = QLabel(**kwargs) Как получить полный список доступных свойств? Эта функция распечатает в терминал все свойства виджета и их текущие значения def print_widget_properties(widget): meta_object = widget.metaObject() for i in range(meta_object.propertyCount()): property_ = meta_object.property(i) property_name = property_.name() property_value = property_.read(widget) print(f"{property_name}: {property_value}") #tricks#qt
Пребарај: #combat
@kizlyarsupreme · Post #1262 · 28.02.2025 г., 12:01
Combat от Kizlyar Supreme Модель создана на основе Vector с более коротким клинком. Прототип можно посмотреть и подержать в руках на выставке. #Expo#Combat
@voir_yeux · Post #11669 · 09.02.2026 г., 11:01
🇸🇰🇨🇿 Le combattant slovaque de MMA Pavol Vasko a mordu l'oreille du Tchèque Vaclav Mikulasek lors d'un combat en République tchèque, indique le journal The Sun. Vasko a ensuite été pris à partie par des spectateurs à l'extérieur de l'octogone. L'un d'eux lui a lancé une chaise, le touchant à la tête. Il a été contraint de quitter l'arène. #mma#combat#tchéquie
@american_observer · Post #5291 · 05.03.2026 г., 17:02
#weapon#system#combat#search 📱American Оbserver - Stay up to date on all important events 🇺🇸
@coloringbookspdf · Post #317 · 15.07.2024 г., 15:52
✅ 10 WAR PLANES 🆓 • Personal Use License. #coloringpage#war#combat#jets#planes#figther
@TFGames · Post #1601 · 22.12.2023 г., 13:31
#GUNSHIP#IV#MODERN#AIR#COMBAT #GAMES https://testflight.apple.com/join/yyYsr6D9
@nido_russia · Post #1720 · 20.07.2024 г., 17:42
🇳🇬🇷🇺 This is our brother, our member, and just one of many, who have volunteered themselves (NOT conscripted, and NOT forced) to help Russia in the special military operation. We are in constant communication regarding his welfare. Nigerians surely love Russia. We not only contribute to the economy, and engage in cultural exchange, but many are also prepared to put themselves on the frontline and in the combat zone because frankly we all share common security/welfare and believe in the international principle of indivisible security. God be with you Brother! Victory is ours! Dr. Godwin Ibe, Chairman, NIDO Russia Subscribe:@nido_russia https://t.me/nido_russia/1720 #smo#сво#russia#ukraine#nato#Nigeria#Russia#festival#concert#combat
@TFGames · Post #2243 · 28.02.2024 г., 03:49
#DEVIL#MAY#CRY#PEAK#OF#COMBAT #GAMES https://testflight.apple.com/join/YwdVgCwp