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

TGINSIGHT SIMILAR POSTS

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

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

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

Hashtags

Резултати

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

Пребарај: #geolocation

当前筛选 #geolocation清除筛选
Libreware

@libreware · Post #1512 · 28.09.2025 г., 11:58

Chasing Your Tail (CYT) https://github.com/ArgeliusLabs/Chasing-Your-Tail-NG A comprehensive #WiFi probe request analyzer that monitors and tracks wireless devices by analyzing their probe requests. The system integrates with #Kismet for packet capture and WiGLE API for #SSID#geolocation analysis, featuring advanced #surveillance#detection capabilities. Features Real-time Wi-Fi monitoring with Kismet integration Advanced surveillance detection with persistence scoring Automatic GPS integration - extracts coordinates from Bluetooth GPS via Kismet GPS correlation and location clustering (100m threshold) Spectacular KML visualization for Google Earth with professional styling and interactive content Multi-format reporting - Markdown, HTML (with pandoc), and KML outputs Time-window tracking (5, 10, 15, 20 minute windows) WiGLE API integration for SSID geolocation Multi-location tracking algorithms for detecting following behavior Enhanced GUI interface with surveillance analysis button Organized file structure with dedicated output directories Comprehensive logging and analysis tools Requirements Python 3.6+ Kismet wireless packet capture Wi-Fi adapter supporting monitor mode Linux-based system WiGLE API key (optional)

djangoproject

@djangoproject · Post #241 · 25.01.2017 г., 13:30

http://www.aparat.com/v/4yGhH #Geolocation apps with #Django. Latitude, longitude, altitude, and even #iBeacons can be leveraged to enable geo-targeted experiences. But how do we build and optimize the server-side components to handle these requirements? Using a combination of libraries and techniques, we will illustrate these concepts. In this discussion everything from #map clustering and caching, to distance calculations and polygonal layering will be demonstrated using Django, #GeoDjango, #Redis, and #PostGIS as our tool belt.