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

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #62 · 4 апр.

Когда разрабатываете свой GUI с помощью PyQt для какого-либо софта бывает необходимо позаимствовать цвета из текущего стиля интерфейса. Например, чтобы правильно раскрасить свои виджеты, подогнав их по цвету. Ведь бывает, что ваш GUI используется в разных софтах. Причём некоторые со светлой темой а другие с тёмной. По умолчанию стили наследуются, но если вы задаёте какую-либо раскраску для части виджета через свой styleSheet, то требуется ссылаться на цвета текущего стиля. Как это сделать? Как получить нужный цвет из палитры имеющегося стиля? Это достаточно просто, нужно использовать класс QPalette и его роли. Например, мне нужно достать цвет текста из одного виджета и применить его в другом как цвет фона (не важно зачем именно так, просто захотелось😊). Получаем палитру виджета и сразу достаём нужный цвет, указав его роль. from PySide2.QtGui import QPalette color = main_window.palette().color(QPalette.Text) теперь можем использовать этот цвет в стилях my_widget.setStyleSheet(f'background-color: {color.name()};') Готово, мы динамически переопределили дефолтный стиль используя текущий стиль окна! На самом деле есть запись покороче, в одну строку и без лишних переменных. Не очень-то по правилам CSS, но Qt это понимает. my_widget.setStyleSheet('background-color: palette(Text);') Этот способ не подходит если вам нужно как-то модифицировать цвет перед применением в своих стилях. В этом случае потребуется первый способ. Зато он прекрасно сработает в файле .qss, то есть не придётся в коде прописывать раскраску отдельных элементов через ссылки на палитру, всё красиво сохранится в отдельном файле .qss! QListView#my_widget::item:selected { background: palette(Midlight); } Про имеющиеся роли можно почитать здесь🌍 #qt#tricks

Hashtags

Резултати

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

Пребарај: #coinbaseprime

当前筛选 #coinbaseprime清除筛选
Elf Crypto VIP

@elfcryptovip · Post #11848 · 21.08.2025 г., 14:39

BlackRock is selling $ETH and $BTC. BlackRock deposited 1,885 $BTC($111.66M) and 59,606 $ETH($254.43M) to #CoinbasePrime 4 hours ago. https://intel.arkm.com/explorer/entity/blackrock

SpotOnChain | Announcement

@spotonchain · Post #1075 · 14.01.2025 г., 23:28

World Liberty Financial (@worldlibertyfi) just deposited 11,918 $ETH ($38.5M) to Coinbase Prime! In the past hour, the fund swapped 103.1 $WBTC ($9.89M) for 3,074.4 $ETH at ~$95,867, then deposited 11,918 $ETH ($38.5M) to #CoinbasePrime at ~$3,229. From Nov 30 to Dec 20, 2024, it spent $10M on 103.1 $WBTC at ~$96,993 and $35M on 9,587 $ETH at ~$3,651. Interestingly, after selling, the fund quickly spent 1.7M $USDT to buy back 17.62 $WBTC. Now, it holds 7,766 $ETH ($25.1M) and 17.62 $WBTC ($1.69M). 👉 Follow @spotonchain and check out the full details at https://x.com/spotonchain/status/1879308991744156004

SpotOnChain | Announcement

@spotonchain · Post #935 · 01.08.2024 г., 02:04

The largest holder of $MKR withdrew 973 $MKR ($2.76M) from #CoinbasePrime 4 hours ago. Notably, this is the whale’s first activity in the past 3 months. The whale now has an est. total profit of $64M (+100%) from $MKR with 45,109 $MKR ($124M) in holding, including: ➡️ 44,420 $MKR ($122.4M) in wallet "0x14c," the largest non-team MKR-holding wallet; ➡️ 689 $MKR ($1.91M) in wallet "0x78a". Follow @spotonchain and check out the whale's addresses via this token flow: https://platform.spotonchain.ai/en/visualizer?timeRange=1&id=173692

SpotOnChain | Announcement

@spotonchain · Post #920 · 23.07.2024 г., 01:37

The US Government deposited another 58.74 $BTC ($3.96M) to #CoinbasePrime 7 hours ago. So far in 2024, the US government has moved out 6,261 $BTC at an avg price of $62,538 ($392M), mostly after the price rose in late Feb. Among those tokens, 5,999 $BTC ($376M) went to Coinbase. The US government still holds 213K $BTC ($14.3B). Follow @spotonchain and set alerts for the #USGovernment now via https://platform.spotonchain.ai/en/platform/entity/188

Michaël Van de Poppe Official

@michaelvandepoppeanalyst · Post #4473 · 15.08.2024 г., 07:16

The #USGovernment transferred 15,940 $BTC($966.4M) to #CoinbasePrime in three transactions this year. Within three days of the first two transfers, the price of $BTC both dropped by ~5%. https://platform.arkhamintelligence.com/explorer/tx/b614dd2e0fa06d776ee4d45973fab5ceb6e2dfebfb84e5f7bd45ef0975455240 https://platform.arkhamintelligence.com/explorer/tx/0f3f9a7c01d85c5747a3ae6cc9621cc30360390c4b681c1f95573e6bbcffed4f https://platform.arkhamintelligence.com/explorer/tx/a224c1658e4e4c1c0480312aea6c6102dbd5ec912810c799998a4d2f00741b0d

SpotOnChain | Announcement

@spotonchain · Post #1329 · 11.11.2025 г., 10:06

⚠️ Large amounts of $UNI have been flowing into exchanges in the past 6 hours! 1️⃣ Two wallets, likely controlled by one whale, deposited all 1.71M $UNI ($15M) into #Binance ~3 hours ago—possibly losing $1.44M (-8.8%). The whale accumulated these $UNI tokens for $16.44M from #Binance and #Flowdesk between Feb 5 and Oct 12, 2025. 2️⃣ Two wallets linked to @Uniswap deposited 8.23M $UNI ($77.45M) into #CoinbasePrime ~5 hours ago. These tokens were released from the wallet “0x8Fd” (labeled "Uniswap: Investors" on Arkham) 5 years ago. Note that the price of $UNI has been corrected by half of today’s surge during this period. Let’s follow @spotonchain for more updates about #Uniswap now! https://x.com/spotonchain/status/1988186382783664270

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1094 · 19.10.2025 г., 13:58

🤣#EthWeb3News#BlockChain 🔹 😤#BlackRock 在 #CoinbasePrime 操作:BTC存入 ETH提领 #机构买盘 存入 272.4 枚比特幣,數小時後又提領 12,098 枚以太幣,引發市場對其資產配置意圖的關注。