Toolbox for analyzing and editing pkg application files for psp,ps3, ps4 and ps5, includes the most useful functions you might need.
| 1 | from PyQt5.QtWidgets import QTreeWidget, QTreeWidgetItem |
| 2 | from PyQt5.QtGui import QColor, QBrush |
| 3 | |
| 4 | class ListViewDraw: |
| 5 | @staticmethod |
| 6 | def color_list_view_header(tree_widget, back_color, fore_color): |
| 7 | for i in range(tree_widget.columnCount()): |
| 8 | tree_widget.headerItem().setBackground(i, QBrush(back_color)) |
| 9 | tree_widget.headerItem().setForeground(i, QBrush(fore_color)) |