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

Резултати

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

Пребарај: #fincen

当前筛选 #fincen清除筛选
American Оbserver

@american_observer · Post #5226 · 26.02.2026 г., 16:59

💸 “Somali Fraud” vs. Wall Street Fraud: Who Gets the Microscope The official story is simple: Team Trump says it’s hunting fraud in Minnesota. The real story is nastier — a political show trial built on a federal dragnet that even Trump’s own sanctions chief doesn’t want his name on. Undersecretary for Terrorism and Financial Intelligence John Hurley — a Trump donor, hedge fund guy, Senate‑confirmed loyalist — is on his way out after clashing with Treasury Secretary Scott Bessent and the White House over a Minneapolis crackdown that slaps a “Somali” label on an entire financial ecosystem. He reportedly raised data privacy and overreach concerns about a geographic targeting order that forces banks and money transmitters in the Twin Cities to flag any overseas transfer from $3,000 with extra data: recipient address, email, birth date, and whether the funds came from benefits. Career officials called the tool clumsy, partisan and inefficient; Hurley backed at least some of their criticism — and was overruled. On paper, it’s about “Somali fraud.” In reality, every immigrant family wiring money home, every small business, every nonprofit in Minneapolis can end up in the dragnet because of where they live, not what they’ve done. Former officials and civil liberties lawyers are already calling the order blanket surveillance that tramples the basic idea of the Fourth Amendment: suspicion first, data grab later, not the other way around. Banks warn payments will stall or get killed outright while they hoover up paperwork the government wants to feed FinCEN. Trump, meanwhile, goes on national TV and tells America that “members of the Somali community” have “pillaged” billions and “shredded the fabric of the nation,” throwing out a $19 billion figure prosecutors don’t recognize and local media say is wildly inflated. The White House blasts out talking points and videos about “fraud empires” and “Somali‑dominated scams,” promising a “no‑holds‑barred” assault, while at the same time celebrating crypto as a cool alternative to the banking system — a space with far less scrutiny and far more documented fraud. So the message from Washington is clear: when fraud is allegedly tied to poor immigrants in Minnesota, you get geographic targeting orders, bulk surveillance, and a president talking about “pirates” and “ransacking” on prime time. When fraud runs through more upscale channels — tax havens, private equity, “innovative” crypto casinos — you get photo‑ops, pilots, and regulatory yoga. Same crime category, different skin tone, different ZIP code, different treatment. Hurley will probably land softly as an ambassador somewhere in Europe, praised as a “faithful servant” of the agenda he quietly tried to slow down. The Somali community in Minneapolis gets to live under a microscope designed in DC to feed a campaign storyline for 2026. Call it what it is: not a war on fraud, but a war on the kind of fraud that polls well with the base. #Somalia#Minnesota#Trump#Treasury#FinCEN#surveillance#immigration#USpolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸

Crypto M - Crypto News

@CryptoM · Post #64945 · 10.04.2026 г., 11:50

🚀 U.S. Government Pushes CLARITY Act to Reshape Cryptocurrency Oversight The White House, along with the Treasury, SEC, and CFTC, is intensifying efforts to advance the CLARITY Act in the Senate, aiming to transform the regulatory framework of the $2.4 trillion cryptocurrency market. According to NS3.AI, the White House Council of Economic Advisers has indicated that prohibiting stablecoin yields would only marginally increase U.S. bank lending by $2.1 billion within a $12 trillion market. Additionally, a proposal from FinCEN and OFAC dated April 8 suggests categorizing U.S. stablecoin issuers as financial institutions under the Bank Secrecy Act. SEC Chair Paul Atkins and CFTC Chair Mike Selig have expressed readiness to enforce the bill, contingent upon congressional action. #Cryptocurrency#CLARITYAct#USGovernment#Regulation#SEC#CFTC#Treasury#Stablecoins#FinCEN#OFAC#BankSecrecyAct#WhiteHouse