본문 바로가기
반응형

분류 전체보기281

[Python]PyQt Widgets https://www.pythonguis.com/tutorials/pyqt-basic-widgets/ PyQt5 Widgets — QCheckBox, QComboBox, QPushButton, QLabel, QSliderPyQt5 has a huge library of widgets, including buttons, checkboxes, list boxes, and sliders or dials. Learn how to use them in your apps. In Qt, like in most GUI frameworks, widget is the name given to a component of the UI that the user can interact with.www.pythonguis.com .. 2024. 5. 7.
[Python] Candle Stick Chart https://levelup.gitconnected.com/7-fascinating-python-financial-graphs-that-will-amaze-you-b21d5f65cd1a 7 Fascinating Python Financial Graphs That Will Amaze You!Introduction: Exploring the Power of Python in Financial Graphslevelup.gitconnected.com  import plotly.graph_objects as goimport pandas as pd# Sample data: Date, Open, High, Low, Closedata = { 'Date': pd.date_range(start='2024-01-01'.. 2024. 5. 7.
Dragon Moving Banner #Dragon Moving Bannerimport matplotlib.pyplot as pltimport numpy as npfrom matplotlib.image import imread# Load two PNG imagesimage1_path = "1.png"image2_path = "2.png"x1 = imread(image1_path)x2 = imread(image2_path)'''# two images x1 is initially visible, x2 is notx1 = np.random.random((100, 100))x2 = np.random.random((150, 175))'''# Set the size of the figureplt.figure(figsize=(10, 2))# arbitr.. 2024. 5. 7.
[Errno 13] Permission denied: '/dev/ttyUSB0' serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'시리얼 포트에 대한 접근 권한이 없기 때문 `udev` 규칙을 사용하면 특정 장치에 대해 자동으로 권한을 설정할 수 있습니다. 예를 들어, `/etc/udev/rules.d/` 디렉토리에 새 규칙 파일을 생성하여 `/dev/ttyUSB0`에 대한 권한을 설정할 수 있습니다. 99-serial.rules 파일을 생성 sudo vi /etc/udev/rules.d/99-serial.rules  내용입력KERNEL="ttyUSB0", MODE="0666" udev 규칙 적용sudo udeva.. 2024. 5. 2.
반응형