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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #110 · 3 јул.

Есть у QLabel есть одна особенность. Её минимальный размер определяется текстом, который в неё записан. Это приводит к тому что длинный текст принудительно увеличивает ширину интерфейса. В большинстве случаев это выглядит плохо. Как с этим бороться? 🔸 Обрезать текст заранее, задав лимит по длине строки. В этом случае мы теряем часть визуальной информации. Не всегда угадаешь нужный размер. В разных OS шрифт используется разный. 🔸 Делать перенос строки. Тогда мы получим изменение размера в другую сторону, что тоже поломает интерфейс. 🔸 Переопределить paintEvent() и сделать кастомный рендеринг текста. Можно, но слишком сложно для такой задачи. Проще всего обрезать текст под текущий размер виджета используя класс QFontMetrics. Он имеет готовый метод elidedText(), который просто вызываем по событию resizeEvent. Я также добавил установку ToolTip чтобы всегда можно было увидеть полный текст при наведении курсора. 🌎 Код здесь #qt#source

Hashtags

Резултати

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

Глобално пребарување

Telegram Contests

@contest · Post #212 · 02.02.2021 г., 19:05

A new test dataset has been added for the Data Clustering Contest: https://contest.com/docs/dc2021-r1#source-data Unlike the initial data set, the new set contains channel descriptions. Note that your algorithm must be able to produce results regardless of the presence or absenсe of this data.

Hashtags

BotzHub

@botzhub · Post #181 · 01.02.2022 г., 17:05

@ErrorTGsearcherBot #source » https://github.com/TechiError/TG-searcherBot - Search for channels or chats from given query and sends to current chat! Usage: Click here Star the repo if you liked ☺️ By @TechiError ~ @BotzHub

Hashtags

SAHEL SCOPE

@sahelscope · Post #1404 · 09.12.2025 г., 20:18

Selon le ministre de l'économie et des finances, le trésor public va payer les dettes intérieures de 2023 et 2024 d'une valeur de 312 milliards de francs CFA pour assurer la continuité des activité des opérateurs économiques. #source : JT de l'ORTM

Hashtags

SAHEL SCOPE

@sahelscope · Post #534 · 31.05.2025 г., 22:38

Ministre de l'économie et des finances :"Le taux de chômage au Mali est passé de 6,1 en 2021 à 3,5 en 2025. Le taux de chômage est en baisse au Mali." #source : ORTM - Malikoura tassira 3

Hashtags

TechiError

@TechiError · Post #26 · 01.02.2022 г., 17:04

@ErrorTGsearcherBot #source » https://github.com/TechiError/TG-searcherBot - Search for channels or chats from given query and sends to current chat! Usage: Click here Star the repo if you liked ☺️ By @TechiError

Hashtags

X Empire Beyond | Crypto

@xempirecombodaily1 · Post #11022 · 24.06.2025 г., 15:40

⚡ Jerome Powell (Chairman of the Fed): ✔ There is no recession in the USA. ❗️We may see inflation turn out to be lower than expected, in which case we would consider a Fed rate cut. ✔ A weakening labor market also suggests a faster rate cut. ✔ The Fed predicts that inflation will rise due to tariffs. ✔ Most Fed members believe it would be appropriate to cut rates later this year. ✔ So far, there are no conflicts between the Fed's dual mandates (labor market and inflation). ✔ The Fed's policy will not trigger an increase in housing supply in the long term. ❗️Banks are free to provide services to the crypto industry and conduct their activities, provided they ensure safety and reliability. ✔ I'm not worried about the latest macroeconomic data, but I am concerned about how it might change. ✔ We expect inflation to rise due to tariffs, but we do not yet know the extent of its impact on consumers. Therefore, we must wait. ✔ As long as the economy remains strong, we can afford to take a short pause. ❗️We will lower the Fed rate when the time is right. ✔ I think inflation will start to rise due to tariffs beginning in June. ✔ We will monitor the situation throughout the summer. ✔ There is no need to rush. ✔ I will not name a specific month in which we might cut the Fed rate. ✔ The Fed is simply trying to act cautiously and prudently. ✔ Economic growth will slow down this year. Immigration is one of the reasons. ✔ The dollar will remain a reserve currency for a long time. ✔ The US government bond market is functioning normally. ❗️The Fed will not tighten monetary policy or adjust the rate just because of rising oil prices. We will evaluate the entire macroeconomic picture. ✔ The dollar will remain a reserve currency for a long time. ✔ The US government bond market is functioning normally. ❗️The Fed will not tighten monetary policy or adjust the rate just because of rising oil prices. We will evaluate the entire macroeconomic picture. ✔ We are approaching price stability, but we have not quite achieved it yet. ❗️ The Fed does not have the right to buy cryptocurrency on its balance sheet and we do not seek to do so. ❗️Phs will continue to reduce balance ( #QT ). ✔ Small business lending conditions are a bit strict. ✔ We expect to see the impact of Trump's tariffs on inflation this summer. ❗️If this does not happen, we will lower the rate . ✔ We are currently in watch and wait mode. ✔ Overall, the inflation picture is quite positive. J. Powell testifies before the House Financial Services Committee on Monetary Policy.

Hashtags

Joningdan_Corporation

@joningdan_corporation · Post #13 · 02.06.2023 г., 23:20

Африкалик сийғоқ ёҳуд муҳим дарс! Японияда таҳсил олган бир ёш африкалик Facebook’даги саҳифасида шундай деб ёзганди: Мен Япониядаги беш юлдузли отелларни бирида меҳмон бўлгандим. Яшаётган меҳмонхонанинг ҳовузига чўмилиш учун борганимда, бассейнда мендан бошқа ҳеч ким йўқ эди. Сувда қистаб қолганди, шартта сувга чоптирвордим (сийвордим). Бирдан... сув пушти рангга айланиб кетди ва сигнал чалинди. Дарҳол меҳмонхона ишчилари етиб келишиб, мени бассейндан чиқариб олишди. Кейин улар сувни бўшатиб, ҳовузни тозалашларини ва мен меҳмонхонанинг муҳим ҳудудидаги тартибни бузганлигимни айтишди (ичимдан дарз кетиш бўлди). Шундан сўнг улар мени хонамга қўнғироқ қилишди. Меҳмонхона котибаси менга паспортимни қайтариб берар экан, меҳмонхонани тарк этишимни сўради. Бу меҳмонхонадан чиқиб, бошқа бир шунга ўхшаш, бассейни бор бўлган муқобилини излар эканман, ҳар сафар бирор меҳмонхонага кирганимда қабулхона ходими паспортимга қараб: “Кечирасиз, бу сизмисиз.... Эҳ...,” дея узр сўрашар ва мени қабул қилолмаслигини айтишарди ва ҳоказо аҳвол шундай давом этарди. Оҳири менга ҳеч қандай меҳмонхонада қолишга рухсат беришмаётгани учун элчихонамга мурожаат қилдим. Элчихонадагилар менга бассейни бўлмаган меҳмонхонага боришни маслаҳат беришди... Япониядан чиқиб кетаётганимда паспортимга муҳр босар экан, паспорт нозири: “Умид қиламанки, сен яхшигина сабоқ олдинг ", деди. Хулоса: Бассейнга сийганимни бутун Япония билди. Бу ерда - уйимда эса, ҳукуматимиз давлатнинг хазинасидан миллиардлаб долларларни ким ўғирлаётганлигини ҳали ҳам билмайди." #Source:Tales Of Africa @JONINGDAN_CORPORATION Каналга қўшилиш бепул #Жонингдан😂

ПретходнаСтраница 1 од 3Следна