@HELPFLORIN · Post #8028 · 28.05.2023 г., 18:12
𖥻 🍵 ›› ֗ . . ✦ › › #gigi — #model ➫ 𝘁𝗮𝗴𝘀 — #icon (ⲃ ⲕⲟⲙⲙ.)) `` взяⲗυ ♡゙ — ‹ + › ⲃ ⲕⲟⲙⲙ.
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
Пребарај: #gigi
@HELPFLORIN · Post #8028 · 28.05.2023 г., 18:12
𖥻 🍵 ›› ֗ . . ✦ › › #gigi — #model ➫ 𝘁𝗮𝗴𝘀 — #icon (ⲃ ⲕⲟⲙⲙ.)) `` взяⲗυ ♡゙ — ‹ + › ⲃ ⲕⲟⲙⲙ.
@HELPFLORIN · Post #7648 · 13.05.2023 г., 12:00
𖥻 🍵 ›› ֗ . . ✦ › › #gigi — #model ➫ 𝘁𝗮𝗴𝘀 — #twixtor (ⲃ ⲕⲟⲙⲙ.)) `` взяⲗυ ♡゙ — ‹ + › ⲃ ⲕⲟⲙⲙ.
@HELPFLORIN · Post #7923 · 25.05.2023 г., 08:50
𖥻 🍵 ›› ֗ . . ✦ › › #gigi — #model ➫ 𝘁𝗮𝗴𝘀 — #fancam (ⲃ ⲕⲟⲙⲙ.)) `` взяⲗυ ♡゙ — ‹ + › ⲃ ⲕⲟⲙⲙ.
@wangzhuanzhan · Post #32338 · 05.09.2024 г., 06:05
J-j金j粉f世s界j- 金粉世界 Gigi (1958) 直达链接:https://pan.quark.cn/s/9f354ff5e658 #金粉世界#Gigi#琪琪 链接:https://link3.cc/sf_com #电影#喜剧#美国#50年代
@gidle_update · Post #45695 · 16.09.2025 г., 11:06
250915 || @Withmuu_twt 𝕏 UPDATE [📢] YUQI 1st Single [Motivation] POP-UP guide 𝗪𝗵𝗮𝘁'𝘀 𝗬𝗼𝘂𝗿 𝗠𝗼𝘁𝗶𝘃𝗮𝘁𝗶𝗼𝗻-? Welcome to a space full of persistence and determination-💌 From various MDs of the album concept to events you can participate in, meet them at the popup ❤️ #아이들#idle #우기#YUQI #Motivation #MO#아프다 #GIGI#GIGI_SUPERSTAR #YUQI_PopUp –🦋 ── @GIDLE_UPDATE ──
@mib_messageinabottle · Post #6978 · 27.05.2024 г., 14:00
Video (#1 above) surfaced last week of several rich upper class kids holidaying in the exclusive #German resort island of #Sylt, singing along to a tune called "L'Amour toujours" by Italian DJ #Gigi D'Agostino, but using words associated with the German Extreme #RightWing "Ausländer raus, Deutschland den Deutschen, Ausländer Raus" "Foreigners out, Germany for Germans, Foreigners out!" The German media and Gov't went into overdrive and the 5 rich kids involved, were soon identified, named&shamed, and have now been totally and utterly "ge-#canceled", losing jobs and probably any hope of a quiet future. The re-worded tune however has now gone completely viral, spawning numerous other memes and parodies (videos #3, #4, #5 above) It's a very clear example of the "Barbara #Streisand" Effect in action
@ethiopia · Post #254 · 16.01.2026 г., 09:09
━━━━━━━━━━━━━━━━ 🎬 *WATCH THE DANCE:* 👉https://www.youtube.com/watch?v=Um4W3-nTH68 👉 Try the challenge! Can YOU do Eskista? ━━━━━━━━━━━━━━━━ #Eskista#EthiopianDance#CulturalPride#ViralDance#TikTokChallenge#EthiopianMusic#TeddyAfro#Gigi#ኢትዮጵያ