@ParadoxW98 · Post #23903 · 06.02.2025 г., 12:23
马部长计划整顿美国国税局(IRS),对其开展审计工作 https://x.com/elonmusk/status/1886847092888310231 🗒 标签: #马斯克#IRS
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
Пребарај: #irs
@ParadoxW98 · Post #23903 · 06.02.2025 г., 12:23
马部长计划整顿美国国税局(IRS),对其开展审计工作 https://x.com/elonmusk/status/1886847092888310231 🗒 标签: #马斯克#IRS
@venturevillagewall · Post #3860 · 13.01.2025 г., 01:00
Congressman Proposes IRS Abolishment Bill US Congressman Buddy Carter has introduced a bill to abolish the IRS, aiming to repeal all income, payroll, estate, and gift taxes. This radical tax reform could have significant implications for taxpayers. Bitcoin price surges to $95,000. #US#IRS#Taxes#Bitcoin#Crypto
@venturevillagewall · Post #3735 · 28.12.2024 г., 10:00
New IRS Rules for DeFi Brokers Announced The IRS has implemented new rules requiring DeFi brokers to report income from crypto transactions, similar to traditional financial institutions. Market participants will need to collect user transaction data and file Form 1099 starting January 1, 2027. These changes have sparked criticism, with legal experts arguing that the IRS is overstepping its authority. Some believe the incoming Congress might overturn these regulations. Read more: Forklog #US#taxes#DeFi#Crypto#IRS
@scdq1 · Post #85981 · 09.01.2026 г., 08:16
#税务#交税#IRS 我的税务顾问打电话告诉我,再过几天2025年Q4(第四季度)的税务要截止了,所以,我登录了我的IRS。补齐了我的税款,2025年总交税金额$38,600。和我预想中的差不多,我以为应该在$50,000。看来我的税务顾问为我省下了不少钱,我应该想想该怎么奖励她😄😁 PS:⚠️下方日期注意一下⚠️ 上方姓名最好也注意一下 交的是预估税 (Estimated Tax Payments)。 什么是预估税? 这通常是为那些没有通过工资自动扣缴(Withholding)的收入所支付的税款。 适用人群: 通常是自雇人士、自由职业者、有大量投资收益(如股票、分红)、租金收入,或者通过工资预扣的税额不足的人。 你也可以说是想起来要税务结算了,结算时间是2026年1月15号
@scdq1 · Post #85975 · 09.01.2026 г., 08:16
#税务#交税#IRS 我的税务顾问打电话告诉我,再过几天2025年Q4(第四季度)的税务要截止了,所以,我登录了我的IRS。补齐了我的税款,2025年总交税金额$38,600。和我预想中的差不多,我以为应该在$50,000。看来我的税务顾问为我省下了不少钱,我应该想想该怎么奖励她😄😁 PS:⚠️下方日期注意一下⚠️ 上方姓名最好也注意一下 交的是预估税 (Estimated Tax Payments)。 什么是预估税? 这通常是为那些没有通过工资自动扣缴(Withholding)的收入所支付的税款。 适用人群: 通常是自雇人士、自由职业者、有大量投资收益(如股票、分红)、租金收入,或者通过工资预扣的税额不足的人。 你也可以说是想起来要税务结算了,结算时间是2026年1月15号
@venturevillagewall · Post #3970 · 24.01.2025 г., 13:00
MicroStrategy Faces Major Tax Implications Starting in 2026, MicroStrategy could incur significant tax liabilities due to new IRS legislation (CAMT); a 15% tax applies to large corporations with annual revenues over $1 billion. MicroStrategy holds $47 billion in assets and has a paper profit of $18 billion. Without an IRS exemption, their Bitcoin strategy could severely impact their balance sheet. For more details, visit ForkLog. #IRS#Tax#MicroStrategy#Bitcoin#Assets#Finance#Crypto#Taxation#Investments#Market VC
@venturevillagewall · Post #3742 · 29.12.2024 г., 04:00
Major ETH Whale Makes Big Transfers A whale from the Ethereum Genesis Block moves 3,370 ETH ($11.37M) to Kraken and has transferred a total of 48,687 ETH this year, averaging $3,528 per ETH. Remaining balance is 7,594 ETH ($25.72M). Read more. Galaxy Digital's Alex Thorn warns that if the IRS classifies DeFi front-ends as brokers, the DeFi sector may need to comply, restrict US users, or forgo upgrades and profits. Read more. Hyperliquid reports over $1M in daily revenue for the past week. Read more. New proposal includes $USTB, a tokenized fund of U.S. Treasury Bills, as reserves for frxUSD. Read more. #ETH#DeFi#IRS#Crypto#Blockchain#Finance#US#Treasury#Revenue#Investment#Whale#Ethereum#FrxUSD#USTB
@venturevillagewall · Post #3746 · 29.12.2024 г., 19:00
Traders Gain From Whale Monitoring Insights A new Telegram channel tracks whales and market movements, offering crucial analysis for traders. It focuses on whale wallets, coin charts, and Twitter activity for comprehensive market insights. Recent analysis highlights whale activities, crucial for strategic trading. For more details, visit the channel: Telegram Channel In other news: - Crypto market missed Christmas rally. - Mining bans announced in some Russian regions. - Trump expands 'crypto administration'. - Do Kwon to be extradited to the US. - Community raises concerns over hackers targeting Hyperliquid. Read more at ForkLog: ForkLog Digest #Crypto#Whales#Trading#DeFi#Analysis#MarketMovements#FinTech#IRS#Texas#Blockchain#Trump#Mining#Hackers#Telegram#MMO#Valhalla#NewsDigest#Tech#Finance#Investment