TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Hashtags

Резултати

Пронајдени 166 слични објави

Пребарај: #people

当前筛选 #people清除筛选
Coin Sonar

@CoinSonar · Post #243944 · 18.04.2026 г., 03:27

#PEOPLE | Volume spike (USDT PAIR) 229 times the average volume 99.25K USDT traded in 1 min └Selling vol: 73.86K USDT 🔴 Boost score: 1/10 24h Vol: 623.86K USDT (Binance) Price: 0.00800 (-3.6% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243509 · 17.04.2026 г., 07:43

#PEOPLE | Volume spike (USDT PAIR) 19 times the average volume 129.36K USDT traded in 15 min └Selling vol: 98.72K USDT 🔴 Boost score: 1/10 24h Vol: 623.86K USDT (Binance) Price: 0.00814 (-3.6% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243454 · 17.04.2026 г., 05:16

#PEOPLE | Volume spike (USDT PAIR) 21 times the average volume 138.37K USDT traded in 15 min └Selling vol: 98.05K USDT 🔴 Boost score: 1/10 24h Vol: 623.86K USDT (Binance) Price: 0.00836 (-3.6% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243416 · 17.04.2026 г., 02:05

#PEOPLE | Volume spike (USDT PAIR) 23 times the average volume 155.18K USDT traded in 15 min └Selling vol: 120.81K USDT 🔴 Boost score: 1/10 24h Vol: 623.86K USDT (Binance) Price: 0.00852 (-3.6% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243351 · 16.04.2026 г., 23:10

#PEOPLE | Volume spike (USDT PAIR) 19 times the average volume 128.26K USDT traded in 15 min └Buying vol: 82.13K USDT 🟢 Boost score: 5/10 24h Vol: 623.86K USDT (Binance) Price: 0.00895 (-3.6% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243292 · 16.04.2026 г., 19:29

#PEOPLE | Volume spike (USDT PAIR) 21 times the average volume 137.92K USDT traded in 15 min └Selling vol: 87.92K USDT 🔴 Boost score: 1/10 24h Vol: 623.86K USDT (Binance) Price: 0.00891 (-3.6% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28550 · 16.03.2025 г., 15:32

#PEOPLE/USDT analysis : #PEOPLE is in a downtrend, forming lower lows (LLs) and lower highs (LHs) below the 200 EMA. The price is currently facing resistance and is anticipated to decline from there, testing lower levels. TF : 2H Entry : $0.01564 Target : $0.01359 SL : $0.01710

Hashtags

Pro Analysis

@proanalysistrader · Post #28449 · 04.02.2025 г., 14:41

#PEOPLE/USDT analysis : #PEOPLE is currently retracing towards the 200 EMA, before continuation of bearish momentum. The current support level is favorable for long entry, as bullish momentum is anticipated on the lower time frames. TF : 1h Entry : $0.01970 Target : $0.02496 SL : $0.01726

Hashtags

Pro Analysis

@proanalysistrader · Post #27906 · 05.09.2024 г., 17:01

#PEOPLE/USDT analysis : Price is in a downtrend forming lower lows (LLs) and lower highs (LHs) below the 200 EMA. The price is expected to continue its bearish momentum and exhibit further decline in price from the current resistance zone. TF : 1H Entry : $0.0582 Target : $0.0497 SL : $0.0629

Hashtags

American Crypto©

@americancryptotrading · Post #27423 · 30.10.2025 г., 08:56

🇺🇸#PEOPLE/USDT is rebounding from the supportzone on the weekly chart👨‍💻 A great moment to accumulate📈 American Crypto©

Hashtags

Free Crypto Signals (Profitable Zone)

@btctradingclub · Post #26677 · 02.01.2026 г., 14:40

✅✅ 47% Profit on #PEOPLE/USDT for our Premium Members on On Binance Futures, Bitget Futures, ByBit USDT, KuCoin Futures, OKX Futures 👆🏻All Profit Targets Successfully Completed 👁‍🗨Contact @primemod to enter the most powerful premium group & make daily gains

Hashtags

Everything Science

@everything_science · Post #3500 · 09.06.2025 г., 19:13

9-year-old was meant to run a 5K, but took a wrong turn. He kept going and ended up winning the adult 10K! #People 🔔@Everything_Science

Hashtags

123•••10•••1314
ПретходнаСтраница 1 од 14Следна