@Palresistmirror · Post #94934 · 18.05.2026 г., 00:08
🚨 Documentation of the targeting of an IOF vehicle during an IOF invasion in the town of Al-Yamoun, west of #Jenin.
Hashtags
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
Пребарај: #jenin
@Palresistmirror · Post #94934 · 18.05.2026 г., 00:08
🚨 Documentation of the targeting of an IOF vehicle during an IOF invasion in the town of Al-Yamoun, west of #Jenin.
Hashtags
@Palresistmirror · Post #94281 · 06.05.2026 г., 19:23
🚨 The zionist "Northern West Bank Settlements Council" has launched a campaign to recruit settlers for the establishment of 18 new settlement outposts, with support from the "israeli" Ministry of Settlement. Recent developments in #Jenin include: • The return of settlers to settlements in the area. • The IOF seizing hundreds of dunams of land for the construction of settler roads.
Hashtags
@Palresistmirror · Post #94201 · 04.05.2026 г., 15:22
⚫️ Saraya Al-Quds - West Bank: — The sons of Nu’man are in the field. The Silat Al-Harithiya Unit – Jenin Brigade. — Note: Nu'man is in reference to the intellectual revolutionary, Nu'man Tahaineh. Tahaineh was a fighter and thinker from Silat Al-Harithiya, #Jenin, who became one of the most prominent leaders of the Saraya Al-Quds Brigades in the West Bank. In 2004, he ascended to martyrdom in an IOF assassination.
Hashtags
@RNN_Backup · Post #64693 · 25.10.2024 г., 13:07
A photo of the martyr Hanan Abu Salameh, who was shot by the IOF on her own land while picking olives near the colonial separation wall east of #Jenin. At her funeral, mourners chanted, "Long live the rifle! We are your men, O Palestine!" Glory to the martyrs.
Hashtags
@RNN_Backup · Post #64653 · 25.10.2024 г., 12:34
Hanan Abdelrahman Abu Salameh (59) ascended to martyrdom after she was shot in the back by zionist forces while she was picking olives on her land in the village of Faqou’a, eastern #Jenin. Glory to the martyrs.
Hashtags
@RNN_Backup · Post #64448 · 25.10.2024 г., 09:59
The resistance fighter, Kareem Jabarin from #Jenin camp ascended to martyrdom while confronting invading occupation forces during the besiegement of his home. After Kareem ascended, the IOF raided his home and abducted his body. Jabarin turned 20 today. Glory to the martyrs.
Hashtags
@RNN_Backup · Post #64421 · 25.10.2024 г., 09:41
🚨 Very violent armed clashes are taking place between the Palestinian resistance and a special zionist force in the Al-Zahraa area of #Jenin. The IOF has besieged a home and sent in reinforcements. The sounds of gunfire and explosions have not stopped for a moment after the force was discovered by the resistance.
Hashtags
@RNN_Backup · Post #64413 · 25.10.2024 г., 09:33
🚨 Sirens are sounding in the city of #Jenin during the infiltration of zionist special forces in Jenin camp.
Hashtags
@RNN_Backup · Post #64256 · 25.10.2024 г., 07:40
🚨 Armed clashes continue between resistance fighters and the invading occupation forces in #Jenin. (Media 1) A high-impact explosive device targeted the IOF on Al-Nasira street. (Media 2)
Hashtags
@RNN_Backup · Post #64239 · 25.10.2024 г., 07:31
🚨 Resistance fighters detonated a powerful explosive device against zionist vehicles in the Al-Damj neighborhood of #Jenin.
Hashtags
@RNN_Backup · Post #63408 · 14.10.2024 г., 15:39
🚨 Armed clashes continue between resistance fighters and the invading occupation forces in #Jenin. (Media 1) A high-impact explosive device targeted the IOF on Al-Nasira street. (Media 2)
Hashtags
@RNN_Backup · Post #63391 · 14.10.2024 г., 15:38
🚨 Resistance fighters detonated a powerful explosive device against zionist vehicles in the Al-Damj neighborhood of #Jenin.
Hashtags