@emoji1 · Post #1915 · 19.04.2025 г., 11:51
🙏🎂🥚🧺🥚🥚🥚🥚🙏🥚🥚🥚🥚✝️👯🥚🙏🙏🙏🙏🥚🐣🕊️🙏🧁🛐🥚❤️🔥💒👧🥚🥚🥚✨✨✨🥚🧁🐇🩵❤️🩷🥚🌸🌸🌸🥚🆗🥚🤍🥚 пасха | add#easter please boost 👼
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
Пребарај: #easter
@emoji1 · Post #1915 · 19.04.2025 г., 11:51
🙏🎂🥚🧺🥚🥚🥚🥚🙏🥚🥚🥚🥚✝️👯🥚🙏🙏🙏🙏🥚🐣🕊️🙏🧁🛐🥚❤️🔥💒👧🥚🥚🥚✨✨✨🥚🧁🐇🩵❤️🩷🥚🌸🌸🌸🥚🆗🥚🤍🥚 пасха | add#easter please boost 👼
Hashtags
@aseanrussia · Post #1593 · 20.04.2025 г., 09:26
Happy #Easter to all who celebrate! May this Easter bring peace, love, and prosperity! 🙏
Hashtags
@emoji1 · Post #1560 · 05.05.2024 г., 06:58
🧺 🧁 🧁 🥚 🥚 🥚 🥚 🥚 🥚 🐰 🥕 🐇 🐰 🐇 🐰 🐰 🥚 🥚 🐥 🏵 💮 🪴 🌺 🪴 🥚 🥚 🥚 🚩 🚩 🚩 🚩🥮🙏 🤩🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 🤩 🤩 🤩 🤩 🤩 🤩🥚 🤩 🤩🥚🥚🥚🥚 пасха | add#easter please boost 👼
Hashtags
@EuropeanTribalism · Post #406 · 11.04.2020 г., 15:55
Quick and easy way to color your eggs for #Easter: Wrap plant parts of your choice around an egg with a nylon sock very tightly, so that the plant is pressed against the shell. Place the eggs into warm water with loads of onion peels. Boil it for twelve minutes and let everything cool down. Remove the sock with the plant and rub speck all over the egg to make it look shiny. Happy Easter to all of you! @EuropeanTribalism
Hashtags
@CustomEmojiPacks · Post #531 · 29.03.2023 г., 18:32
🎁t.me/addemoji/F4nt1kR4bb1tMaydroid Tags: #animated#animals#easter
@learnrcrussian · Post #4534 · 17.04.2025 г., 16:00
An online video demonstrating how to dye Easter eggs with red wine has become viral. The only thing: keep the wine in the pot, not in yourself! 🔻Here's how: ⚡️Pour any red wine into a pot with red eggs. ⚡️Bring to a boil and simmer for 10 minutes. ⚡️Then cool and put the pot with the eggs and wine into the fridge (not freezer!) for the night. ⚡️In the morning, place them on paper towels to dry. ⚡️The result is matte, shimmering Easter eggs with an unusual color. 🐣Happy Easter to all! #holidays #Easter 😎RCRussian | Support | Boost
@tonlines · Post #6814 · 17.04.2025 г., 13:05
JetTon Games: Final Stage of Easter Treasure Hunt Tournament #JetTon#EASTER JetTon Games announces the final stage of the Easter Treasure Hunt Tournament with a total prize pool of €250,000. Participants can compete in various games like Hot Triple Sevens and The Greatest Catch Bonus Buy with a minimum bet of 0.2 EUR. This is the last opportunity to secure a position in the winners ranking. Source: link @tonlines
@euinkazakhstan · Post #1284 · 18.04.2025 г., 12:12
Happy Easter! *** Пасха мерекесі құтты болсын! #Пасха#Easter
@IrishKnowledge · Post #91 · 23.09.2017 г., 22:13
'Ruins of the Four Courts' - Kathleen Fox. During the #Easter Rising she explored the streets of her native Dublin to paint events there. #Dublin
@learnrcrussian · Post #4547 · 19.04.2025 г., 14:00
🙏🙏🙏Some Russian Easter mood for you: • Красить яйца (imperf.) [kra-sit' yay-tsa] To colour/dye eggs ❓А вы красите яйца на Пасху? Video: AIvikki_topneuro #AI #holidays #Easter 😎RCRussian | Support | Boost
@free4ones · Post #935 · 20.04.2025 г., 09:07
Как все изменилось за несколько сотен лет... Когда-то последователи скрывались в темных катакомбах, а сегодня сторонников учения бесчисленное множество — христианство прошло огромный путь, став одной из главных духовных сил мира. #пасха#easter
@tkong_channel · Post #121 · 19.04.2025 г., 12:38
🐰 Happy Easter from Tkong! 💐 Wishing you a peaceful and joyful spring. 🐰 Tkong 祝你復活節快樂! 💐 願這個春天帶來平安與喜悅。 #Easter#Tkong