Arduino light detector
import machine
a = machine.ADC(0)
a.read()/1024
#soft #arduino
Check internet speed connection from bash
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
speedtest-cli #linux #soft
Podman - Docker on Fedora system
Savings 1.0. released!
Iterating over files in resources:
$ pyside2-rcc resources.qrc > resources.py
import resources
it = QDirIterator(':/icon/icons8/')
while it.hasNext():
self.icon.addItem(QIcon(it.next()), '')
#qt #python
Setup locale on the NextCloudPi (Debian)
vim /etc/locale.gen
locale-gen
https://wiki.debian.org/Locale
#soft #linux
PySide2
Opening dialog windows should be done through .exec()
:
window = QUiLoader().load("form/asset_ed.ui")
window.exec()
#python #soft #pyside2 #qt
Finished the tutorial Getting started with PyQt5
#python #qt #soft