This work is licensed under a Creative Commons Attribution 4.0 International License.
Python implementation of fabienpn/simple-qt-thread-example, with Python3.4 and PyQt
Original (C++): https://github.com/fabienpn/simple-qt-thread-example
Full explanation of the C++ code: http://fabienpn.wordpress.com/2013/05/01/qt-thread-simple-and-stable-with-sources/
Sublass QAbstractTable
and QHeaderView
for a custom table with checkboxes on the left side.
In the header, checkbox allow to check/uncheck all rows.
Tested on OpenSuse with Python2.7 and Python3.4
Given a dictionary:
self.myDict={"Pet":['Dog','Cat'],"Bird":['Eagle','Jay','Falcon']}
The comboBox is populated with the keys (here, species). The list widget is filled with the list associated to the current key (here, animal names). Based on Stackoverflow answer
Custom QDateEdit
which only allows a list of valid days. Displayed in US
format MM/DD/YYYY.
Based on Stackoverflow answer
Custom QTableWidget
with a column of buttons + a method to know which button
was clicked.
From stackoverflow answer