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

TGINSIGHT SIMILAR POSTS

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

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

Ещё немного про base64. Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной. Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData() ... raw_data = base64.decodebytes(ico_encoded) ico = QPixmap() ico.loadFromData(raw_data, "PNG") ... 🌎 Полный пример смотрите в gists. #libs#tricks#qt

Резултати

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

Пребарај: #gpib

当前筛选 #gpib清除筛选
djangoproject

@djangoproject · Post #516 · 07.12.2017 г., 07:12

https://pyvisa.readthedocs.io/en/stable/ PyVISA: #Control your instruments with Python #PyVISA is a Python package that enables you to control all kinds of measurement devices independently of the interface (e.g. #GPIB, #RS232, #USB, #Ethernet). As an example, reading self-identification from a Keithley Multimeter with GPIB number 12 is as easy as three lines of Python code: