@ULTIMORAPOLITICS · Post #43262 · 07.04.2023 г., 21:29
Attentato #TelAviv, la premier Giorgia #Meloni segue i fatti con apprensione: “Coinvolti anche cittadini italiani”. @UltimoraPolitics
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
Пребарај: #telaviv
@ULTIMORAPOLITICS · Post #43262 · 07.04.2023 г., 21:29
Attentato #TelAviv, la premier Giorgia #Meloni segue i fatti con apprensione: “Coinvolti anche cittadini italiani”. @UltimoraPolitics
@ULTIMORAPOLITICS · Post #43261 · 07.04.2023 г., 20:21
Attentato #TelAviv, la premier Giorgia #Meloni segue i fatti con apprensione: “Coinvolti anche cittadini italiani”. @UltimoraPolitics
@notizieturchia · Post #3451 · 16.07.2025 г., 09:58
Continuano gli scontri in #Siria tra le forze governative e le formazioni druse paramilitari. #TelAviv continua a colpire le basi militari siriane e i mezzi armati appartenenti alle forze governative.
@Marwa_OsmanLB · Post #3452 · 11.10.2024 г., 19:52
Two bomber drones launched from #Lebanon successfully crossed into occupied Yafa (#TelAviv), with one striking its intended target. A video captures the rapid drone en route to its destination. The Israeli occupation military, in an attempt to downplay the incident, claimed they tracked the drone from Lebanon and intercepted one of them. Sure..yes..we believe you.
@voir_yeux · Post #12279 · 26.03.2026 г., 21:01
🇮🇱🇮🇷 Conséquences des attaques iraniennes sur Tel Aviv #telaviv#frappes#iran
@radiotolishi · Post #9408 · 11.03.2026 г., 16:07
#خبر #ایران #xəbə #Telaviv Telavivədə İroni həmləon nəticədə vironəon ویرانههای گسترده تلآویو پس از حملات موشکی ایران 💠#رادیو_تالشی💠 ╭──────────╮ 📡@Radiotolishi ╰──────────╯ 💠#Tolışi_Rədio💠
@Marwa_OsmanLB · Post #3209 · 15.09.2024 г., 12:45
A 2000 km Yemeni ballistic missile lands in Tel Aviv as the Israeli military claims it landed in an open area. Initial reports indicated that the missile may have targeted an electricity facility in southeastern. A Multi-Layered Defence Array failed to intercept the attack. #TelAviv. #Yemen
@Marwa_OsmanLB · Post #3335 · 25.09.2024 г., 05:44
#Hezbollah Targets #TelAviv Statement from the Islamic Resistance in #Lebanon In support of our steadfast Palestinian people in the Gaza Strip, and in solidarity with their brave and honorable resistance, as well as in defense of Lebanon and its people, the Islamic Resistance launched a "Qader 1" ballistic missile at 6:30 a.m. on Wednesday, September 25, 2024. The target was the headquarters of Mossad in the outskirts of Tel Aviv, the very site responsible for the assassinations of leaders and the detonation of pagers and wireless devices. "And victory is not but from Allah, the Mighty, the Wise." Wednesday, September 25, 2024 21 Rabi’ al-Awwal 1446 H
Hashtags
@hkhuanhuinews · Post #95 · 25.03.2026 г., 03:42
🇮🇱🇮🇷 报道称:在伊朗导弹袭击以色列后,已有数十人伤亡。 📢 @HKOTCdesk #加密快讯#加密市场#稳定币#israel#telaviv
@savinobalzano · Post #1048 · 15.06.2025 г., 13:50
https://x.com/SavinoBalzano/status/1934246322661457994?t=U3jTWZPtQ4P-IBwdzQ6NqQ&s=19 Suggerisco a tutti quelli che danno per scontate le ragioni di #Israele di guardare questo breve contributo. Non esiste alcuna prova che l'#Iran si stesse dotando di armi nucleari. Nessuna. Per inciso, se ne parla — e si denuncia — da decenni. L'attacco a #Teheran è stato del tutto deliberato e rappresenta una violazione del diritto internazionale. Non è una novità, evidentemente, che #TelAviv agisca in questo modo. Le vere motivazioni dietro l'iniziativa di #Netanyahu risiedono, con ogni probabilità, nella fragilità del suo governo e nelle difficoltà che il Paese incontra nel portare a termine i propri obiettivi. Se ne facciano una ragione i vari Parenzo d'Italia e d'Europa. Sempre meno numerosi, per fortuna.
@notizieturchia · Post #2969 · 20.01.2025 г., 08:13
Dopo l'accordo tra il governo israeliano e #Hamas per scambiare gli ostaggi/i prigionieri, si dimettono 3 ministri di #TelAviv, appartenenti al Partito del Potere Ebraico, #OtzmaYehudit: "L'accordo distrugge tutti i risultati ottenuti dall'#Israele".
@notizieturchia · Post #2923 · 27.12.2024 г., 17:00
#MaherMarwan, nuovo governatore di #Damasco#Siria: "Voglio facilitare le relazioni con #Israele. E' naturale che #TelAviv abbia avuto paura ed è entrata un po' nel territorio siriano e l'abbia un po' bombardato. Non abbiamo problemi con Israele" https://www.npr.org/2024/12/26/nx-s1-5239759/governor-of-damascus-tells-npr-about-the-new-syrian-governments-plans-with-israel