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

Резултати

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

Пребарај: #unlock

当前筛选 #unlock清除筛选
Libreware

@libreware · Post #1170 · 01.09.2023 г., 02:27

#Xiaomi#Bootloader#Unlock without PC (Phone-To-Phone) Note: We are not responsible for any data loss or corrupt devices. Proceed at your own risk. This procedure requires the use of 2 Android phones and an OTG cable for ADB debugging. If this is your first time unlocking the bootloader or your device is using a new MIUI account, proceed with Step 2 after 7 days Step 1 [Configuring Settings] [Primary Phone]: » Go to Settings > About Phone: Click on MIUI Version multiple times until developer options are enabled » Go to Settings Homepage > Additional Settings > Developer Options: Enable OEM Unlocking and USB Debugging » Then go to Mi Unlock Status: Click on Add account and device Step 2 [Installing Flash scripts] [Secondary Phone]: » Download and install these 3 APKs on your secondary phone: https://github.com/RohitVerma882/termux-miunlock/ (outdated?) https://github.com/termux/termux-app/releases/ https://github.com/termux/termux-api/releases/ » Connect the primary phone to the secondary phone via OTG » Boot the primary phone into fastboot mode » Open the Termux app: Follow and run these commands one by one according to the instructions 👤Credits Techbuzznet (Video instructions for Indians) RohitVerma888 @WildWaze ( thx for help and banner) https://t.me/popMODS/3621

Libreware

@libreware · Post #1334 · 25.09.2024 г., 15:38

#Unlock#bootloader#xiaomi#Android HyperSploit Bypass HyperOS restrictions on bootloader unlocking https://github.com/TheAirBlow/HyperSploit/ https://xdaforums.com/t/hypersploit-bypass-hyperos-bootloader-unlocking-restrictions.4668775/ MiUnlockTool Retrieve encryptData (token) for Xiaomi devices to unlock bootloader, it is compatible with all platforms. https://github.com/offici5l/MiUnlockTool termux-miunlock A program that can be used to retrieve the bootloader unlock token for Xiaomi devices (and unlock the bootloader) using Termux https://github.com/RohitVerma882/termux-miunlock/

Libreware

@libreware · Post #1020 · 26.12.2021 г., 19:24

XiaomiTool V2 fixed PC software to unlock bootloader and mod xiaomi devices MariosK239/XMT_V2-linux-fixed https://github.com/MariosK239/XMT_V2-linux-fixed You can git clone the repo and then follow the readme to compile and start the program Forked the repository and applied all pull requests to the Linux branch, for ease of use from https://github.com/francescotescari/XiaoMiToolV2 #xiaomitool#xiaomi#unlock#bootloader

Crypto M - Crypto News

@CryptoM · Post #64494 · 09.04.2026 г., 03:15

🚀 VANA Token Unlock Scheduled for April 16 VANA is set to unlock approximately 2.57 million tokens on April 16 at 19:00 UTC+8. According to ChainCatcher, this token release is valued at around $3.36 million, based on data from the Web3 asset data platform RootData. #VANA#Token#Unlock#April16#Crypto#Blockchain#Web3#RootData#ChainCatcher