일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Excel
- PER
- tensorflow
- MS-SQL
- IOS
- sqlite
- port
- flutter
- 맛집
- javascript
- PyQt5
- 다이어트
- urllib
- ubuntu
- PyQt
- 라즈베리파이
- pandas
- 날짜
- ASP
- Unity
- Linux
- MySQL
- mssql
- GIT
- 유니티
- python
- swift
- 리눅스
- node.js
- 함수
목록랭귀지 (557)
아미(아름다운미소)
Python pyqt5 QTableWidget 너비 높이 조정 QTableWidget.setFixedSize(width, height)
PySide : QVBoxLayout의 너비 설정 v_widget = QWidget() v_widget.setLayout(vlayout) v_widget.setFixedWidth(80)
How to display an image onto a PyQT window QLabel은 setPixmap 메서드를 가지고 있기 때문에 이미지를 표시 할 수 있습니다. 예제) lb = QtGui.QLabel(self) pixmap = QtGui.QPixmap("{경로/파일}") height_label = 100 lb.resize(self.width(), height_label) lb.setPixmap(pixmap.scaled(lb.size(), QtCore.Qt.IgnoreAspectRatio)) self.show()
QTableWidget의 특정 셀을 읽기 전용으로 만들려면,플래그를 변경하여 셀의 동작 / 속성을 변경합니다 item = QTableWidgetItem() item.setFlags(item.flags() ^ Qt.ItemIsEditable) tableName.setItem(row, column, item)
Python PyQt5 선택한 날짜에 setStyleSheet backgroundcolor #33ccff 적용 ''' Created on 2018. 12. 19. @author: bhm ''' from PyQt5 import QtWidgets QSS = ''' QCalendarWidget QAbstractItemView { selection-background-color: #33ccff; selection-color: white; } ''' class CalendarWidget(QtWidgets.QCalendarWidget): def __init__(self, parent=None): super(CalendarWidget, self).__init__(parent, verticalHeaderFormat=Q..
Python PyQt How to convert from Python to QDate style 2018-12-19 -> 2018 12 19 변경 qtDate = QtCore.QDate.fromString(myPythonicDate, 'yyyy-MM-dd') print(qtDate.year(), qtDate.month(), qtDate.day()) 결과 : 2018 12 19
Python pyqt tableWidget double click event #-*- coding: utf-8 -*- self.tableWidget.doubleClicked.connect(self.tableWidget_doubleClicked) def treeMedia_doubleClicked(self): row = self.tableWidget.currentIndex().row() column = self.tableWidget.currentIndex().column() print(row, column)
PyQt에서 QCalendarWidget을 사용하여 날짜선택하기 def selectDates(self): self.dateWindow = QWidget() self.cal = QCalendarWidget(self) self.cal.clicked[QtCore.QDate].connect(self.showDate) self.hbox = QHBoxLayout() self.hbox.addWidget(self.cal) self.dateWindow.setLayout(self.hbox) self.dateWindow.setGeometry(300, 300, 350, 300) self.dateWindow.setWindowTitle('Calendar') self.dateWindow.show() def showDate(self..
PyQt5 messagebox# -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QMessageBox from PyQt5.QtGui import QIcon from PyQt5.QtCore import pyqtSlot class App(QWidget): def __init__(self): super().__init__() self.title = 'PyQt5 messagebox' self.left = 10 self.top = 10 self.width = 320 self.height = 200 self.initUI() def initUI(self): self.setWindowTitle(..