@Pubity · Post #13 · 09.09.2024 г., 18:24
Dating App – the first dating app in Telegram to find your Crush in the places you love ❤️ @datingapp #dating#love
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #381 · 23 окт.
Установить свойства виджета в PySide можно не только через соответствующие методы и конструктор класса. Можно их изменять с помощью метода setProperty по имени. btn = QPushButton("Click Me") btn.setProperty("flat", True) Это аналогично вызову btn.setFlat(True) Если указать несуществующее свойство, то оно просто создается btn.setProperty("btnType", "super") Получить его значение можно методом .property(name) btn_type = btn.property("btnType") Когда это может быть полезно? ▫️Можно просто хранить какие то данные в виджете и потом их доставать обратно widget = QWidget() widget.setProperty('my_data', 123) print(widget.property('my_data')) ▫️ Назначая эти свойства разным виджетам можно потом отличить виджеты во время итераци по ним. Например, найти все кнопки со свойством my_data="superbtn". Но ведь вместо кастомного свойства можно использовать objectName, будет тот же результат. Да, но y ObjectName есть ограничение - только строки. ▫️ Если нам потребуется не просто поиск а, например, сортировка по числу, то свойства позволяют нам это сделать. Поддерживается любой тип данных widget.setProperty('my_data', {'Key': 'value'}) widget.setProperty('order', 1) all_widgets.sort(key=w: w.property('order')) Но ведь Python позволяет всё вышеперечисленное сделать простым созданием атрибута у объекта widget.order = 1 widget.my_data = 123 Да, но я думаю что не надо объяснять почему не стоит так делать. К тому же, если у виджета нет свойства то метод .property(name) вернет None, а отсутствующий атрибут выбросит исключение. ▫️ Действительно полезное применение кастомным свойствам - контроль стилей. Здесь атрибутами не обойтись, нужны именно свойства. Дело в том, что в селекторах стилей можно указывать конкретные свойства виджетов на которые следует назначать стиль. Просто запустите этот код from PySide2.QtWidgets import * if __name__ == "__main__": app = QApplication([]) widget = QWidget(minimumWidth=300) layout = QVBoxLayout(widget) btn1 = QPushButton("Action 1") btn2 = QPushButton("Action 2") btn3 = QPushButton("Action 3", flat=True) layout.addWidget(btn1) layout.addWidget(btn2) layout.addWidget(btn3) # добавим кастомное свойство одной кнопке btn1.setProperty("btnType", "super") # добавляем стили widget.setStyleSheet( """ QPushButton[btnType="super"] { background-color: yellow; color: red; } QPushButton[flat="true"] { color: yellow; } """ ) widget.show() app.exec_() С помощью селектора мы избирательно назначили стили на конкретные кнопки. Как получить список всех кастомный свойств? Функция получения списка кастомных свойств отличается от получения дефолтных. def print_widget_dyn_properties(widget): for prop_name in widget.dynamicPropertyNames(): property_name = prop_name.data().decode() property_value = widget.property(property_name) print(f"{property_name}: {property_value}") #tricks#qt
Пребарај: #dating
@Pubity · Post #13 · 09.09.2024 г., 18:24
Dating App – the first dating app in Telegram to find your Crush in the places you love ❤️ @datingapp #dating#love
@Uncle · Post #13 · 29.07.2024 г., 09:33
Dating App – the first dating app in Telegram to find your Crush in the places you love ❤️ @datingapp #dating#love
@mama · Post #12 · 29.07.2024 г., 09:28
Dating App – the first dating app in Telegram to find your Crush in the places you love ❤️ @datingapp #dating#love
@trumpsear_tg · Post #1586 · 01.10.2025 г., 16:00
“Charmer” Barron Trump reserves an entire floor of Trump Tower for a date Speculation is brewing around young Barron Trump’s personal life as the young bachelor begins his sophomore year in college. Just last month insiders claimed young Trump was focusing on business endeavours, and turned his back on dating. But it seems someone has caught his eye, although the identity of the mysterious lady remains undisclosed. Barron’s classmates say he had no trouble attracting young women since arriving at university. “He’s tall and awkward, but he was the thing, the guy. He had a lot of girls running after him,” one insider said. Another classmate mentioned, “He’s definitely a charmer. He’s very popular among the ladies. He’s tall and good-looking, and many people find him quite attractive.” Of course, dates with the president’s son would be anything but ordinary. Reportedly, the young bachelor shut down an entire floor of his father’s tower for a romantic date. But reportedly it was more than a grand gesture. According to sources, young Trump had no choice but to have his date at home, given the tight security measures to ensure his safety. The decision to shut down the entire floor of the building was made with Barron and his date’s safety in mind. #BarronTrump#dating 👂More on Trump's Ear ⚠️
Hashtags
@cadillac · Post #113 · 28.07.2024 г., 11:13
Dating App – the first dating app in Telegram to find your Crush in the places you love ❤️ @datingapp #dating#love
@DailyMail · Post #15 · 31.07.2024 г., 06:27
Dating App – the first dating app in Telegram to find your Crush in the places you love ❤️ @datingapp #dating#love
@NICKIMINAJ · Post #11 · 29.07.2024 г., 09:40
Dating App – the first dating app in Telegram to find your Crush in the places you love ❤️ @datingapp #dating#love
@China · Post #18 · 29.07.2024 г., 08:14
Dating App – the first dating app in Telegram to find your Crush in the places you love ❤️ @datingapp #dating#love
@chevron · Post #12 · 29.07.2024 г., 09:25
Dating App – the first dating app in Telegram to find your Crush in the places you love ❤️ @datingapp #dating#love
@toncoin_rap · Post #92 · 31.08.2024 г., 07:46
🎧⤴ TON Dating Unleashes New Filters—Are They Revolutionizing Online Matchmaking? - New Filters:TON Dating introduces advanced filters including industry, height, eye color, and zodiac sign. Age and location filters now have an automatic expansion option. - Enhanced Matching: Improved visibility for interest matches and likes, making it easier to find mutual connections. Men can also filter to see only those who liked them. - User Experience: A new profile preview feature lets users see how their profiles appear to others. Registration for men no longer requires an Instagram account, simplifying the process. Verse 1: Filters on deck, yeah, I'm swiping with finesse, Height, zodiac, eyes—got my standards, nothing less. Profiles poppin', see who likes you in a sec, Match, earn that Toncoin, yeah, we chasing that check. Chorus: Swipe right, match tight, filters in the night, Crypto in my wallet, future looking bright. TON's the app, making moves, keeping it tight, Find your match, make it last, everything's in sight. Verse 2: No 'gram needed, just a smile and a vibe, Men, you know who likes you, keep that energy high. Interest matches lit, common ground we can't deny, On this blockchain journey, love and money coincide. Chorus: Swipe right, match tight, filters in the night, Crypto in my wallet, future looking bright. TON's the app, making moves, keeping it tight, Find your match, make it last, everything's in sight. Bridge: From the chat to the heart, blockchain sets us apart, Earnin' while you lovin', that's the realest art. Step up your game, don't let this chance slip away, TON Dating's the wave, it's a brand-new day. #TONDating #Dating #Ton 🎧@toncoin_rap
Hashtags
@libreware · Post #1049 · 26.02.2022 г., 15:52
Alovoa open source online dating Application Meet new, exciting people! alovoa is a free and open source dating application that respects your privacy.A TWP compatible browser is needed for the best Experience Compatible :- fennec,Firefox,iceraven,chrome. Incompatible :- Bromite Download - https://www.f-droid.org/packages/com.alovoa.alovoa/ https://github.com/Alovoa/alovoa-android #New#internet#dating @foss_Android
@testflightynoti · Post #37842 · 08.05.2026 г., 10:40
#LoveStack#Dating#Coach Join the LoveStack: Dating Coach beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/P3B1acNq Shared by Dimitri