Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- MySQL
- python
- PER
- urllib
- PyQt5
- IOS
- mssql
- GIT
- MS-SQL
- Linux
- node.js
- pandas
- 유니티
- 함수
- port
- 날짜
- tensorflow
- ASP
- 라즈베리파이
- PyQt
- ubuntu
- sqlite
- 맛집
- 다이어트
- javascript
- Excel
- 리눅스
- flutter
- swift
- Unity
Archives
목록QTableView (1)
아미(아름다운미소)
PyQt5 : QHeaderView의 헤더를 클릭하면 QTableView를 정렬하는 방법
QHeaderView의 헤더를 클릭하면 QTableView를 정렬하는 방법입니다. 다음 과 같은 함수를 DataFrame사용하면 올바르게 정렬됩니다. def sort(self, Ncol, order): """Sort table by given column number.""" self.layoutAboutToBeChanged.emit() self.data = self.data.sort_values(self.headers[Ncol], ascending=order == Qt.AscendingOrder) self.layoutChanged.emit()
랭귀지/python
2018. 12. 8. 16:11