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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны. Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2. Например, в PyQt4 и PySide есть метод QHeaderView.setResizeMode Для PyQt5 и PySide2 они были благополучно переименованы в QHeaderView.setSectionResizeMode Чтобы применить этот метод следует использовать такой код from Qt import QtCompath header = self.horizontalHeader() QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed) Унификация загрузки UI файлов: # PySide2 from PySide2.QtUiTools import QUiLoader loader = QUiLoader() widget = loader.load(ui_file) # PyQt5 from PyQt5 import uic widget = uic.loadUi(ui_file) # Qt.py from Qt import QtCompat widget = QtCompat.loadUi(ui_file) Хорошо что таких моментов не много и их легко запомнить. Полный список можно посмотреть в таблице. #qt#tricks

Hashtags

Резултати

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

Пребарај: #microcontroller

当前筛选 #microcontroller清除筛选
GitHub Trends

@githubtrending · Post #14657 · 01.05.2025 г., 14:30

#c_lang#embedded#filesystem#microcontroller LittleFS is a file system designed for small devices like microcontrollers. It helps keep your data safe even if the power goes off suddenly. This is because it uses a "copy-on-write" system, which means it doesn't overwrite old data until the new data is safely stored. LittleFS also helps extend the life of your storage by spreading out writes across different areas, a process called wear leveling. This makes it very reliable and efficient for devices with limited memory and storage. https://github.com/littlefs-project/littlefs

GitHub Trends

@githubtrending · Post #14879 · 28.06.2025 г., 14:30

#cplusplus#cpp#hacktoberfest#iot#iot_device#iot_edge#microcontroller#microsoft_for_beginners#python#raspberry_pi#rpi You can learn the basics of the Internet of Things (IoT) through a free 12-week course with 24 lessons that guide you step-by-step in building real projects like plant monitoring, vehicle tracking, and smart cooking timers. Each lesson includes quizzes, instructions, challenges, and solutions to help you understand sensors, cloud connections, security, and AI on devices. The course uses real hardware or virtual options, making it easy to practice hands-on skills. This project-based learning helps you gain practical IoT knowledge useful for many industries, improving your tech skills and job readiness. https://github.com/microsoft/IoT-For-Beginners

GitHub Trends

@githubtrending · Post #14878 · 28.06.2025 г., 14:00

#cplusplus#arduino#cansat#csv#embedded#graph#ground_station#iot#microcontroller#network#projects#qt#serial#serial_studio Serial Studio is a free, easy-to-use tool that lets you visualize real-time data from devices like microcontrollers via serial ports, Bluetooth, or network connections. It works on Windows, macOS, and Linux, and offers customizable dashboards with various widgets to monitor sensor data, debug info, or telemetry. You can quickly plot data, export it as CSV for analysis, and even use advanced features like checksum validation and JavaScript data processing. It supports hobbyists, educators, and professionals by simplifying data monitoring and debugging, saving you time and effort in understanding your device’s output. Pro versions add commercial use and extra features[1][4][5]. https://github.com/Serial-Studio/Serial-Studio

GitHub Trends

@githubtrending · Post #14989 · 23.07.2025 г., 11:30

#c_lang#bluetooth#bluetooth_le#embedded#embedded_c#iot#mcu#microcontroller#real_time#rtos#zephyr#zephyr_rtos#zephyros Zephyr is a free, open-source real-time operating system (RTOS) designed for small, resource-limited devices like sensors, wearables, and IoT gateways. It supports many hardware types such as ARM, Intel x86, and RISC-V, making it flexible for different projects. Zephyr is modular, so you can include only what you need, saving memory and power. It focuses on security with features like memory protection and secure boot. It also offers built-in networking and tools for easy development and testing. This helps you build reliable, fast, and secure embedded systems efficiently, especially for IoT and real-time applications[1][2][3]. https://github.com/zephyrproject-rtos/zephyr