일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- WPF
- 시작 시 프로그램 실행
- C#
- 절대경로
- openpyxl
- Nvidia 깨짐
- json
- windows form
- Import
- Python
- Multi Processing
- MySQL
- 상대경로
- ubuntu
- 화면 안나옴
- datetime
- DataAnalysis
- ipdisk
- Tensor Board Image
- nvidia 삭제
- keras
- 엑셀
- Window_Control
- 시간
- xlsx
- Pandas
- Tensor Board
- 기초
- SQL
- Ubuntu 18.04_2
- Today
- Total
목록기타 (13)
Kminseo
>>> import sys # 터미널창에서 >>> print(sys.path) '/opt/ros/kinetic/lib/python2.7/dist-packages' # 이게 포함되어 있다면 >>> sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages') 또는 /.bashrc에서 '/opt/ros/kinetic/lib/python2.7/dist-packages' export 삭제후 source ~/.bashrc 시킴 sudo rm /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so에서 그냥 패키지 라이브러리를 삭제하는 방법 출처 : https://stackoverflow.com/questions/43019951..
PYQT Image Processing imageLabel.setPixmap(QtGui.QPixmap.fromImage(이미지파일)) def get_state(self): p = QScreen.grabWindow(app.primaryScreen(), main_dialog.winId()) # (메인화면, 현재위젯) p = p.toImage() qimg = p.convertToFormat(QImage.Format_RGB888) qimg = qimg.rgbSwapped() ptr = qimg.constBits() ptr.setsize(qimg.byteCount()) mat = np.array(ptr).reshape(qimg.height(), qimg.width(), 3) mat=mat[10:390,10:210..
PYQT Widget QPushButton 버튼에 이벤트 연결하는 방법으로 이벤트에 함수를 연결시켜서 사용한다. self.[btn_name].clicked.connect(self.[class_function_name]) self.Game_start_btn.setEnabled(False) # 버튼 비활성화 self.Game_start_btn.setEnabled(True) # 버튼 활성 https://www.riverbankcomputing.com/static/Docs/PyQt4/qpushbutton.html
Signal and Emit Gui를 만드는 과정에서 여러가지 기능을 생성할때 클래스를 여러개 만들어서 생성할 때, 객체에서 발생한 이벤트값을 다른 객체로 전달할 때 Signal과 Emit를 사용하여 전달가능하다. class MainDialog(QMainWindow): def __init__(self): QMainWindow.__init__(self, None) self.[object_name].[object_name2][str].connect(self.[connect_object].method) class Board(QFrame,QMainWindow): [object_name2] = pyqtSignal(str) def method(self): self.[object_name2].emit("paused"..
PYQT2Qlabel[객체이름].setText([내용]): Text 박스의 표시 내용을 수정할 때 사용한다.https://www.riverbankcomputing.com/static/Docs/PyQt4/qlabel.htmlQLineEditQLineEdit은 한 줄의 텍스트를 입력할 수 있는 위젯이다.textChanged() : 객체의 텍스트 변경시https://www.riverbankcomputing.com/static/Docs/PyQt4/qlineedit.html