Skip to content

Melanie-M/PyQt4-Examples

Repository files navigation

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

simple-qt-thread

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/

checkBoxTable

table with checkboxes screenshot

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

comboBox_listWidget

combobox and listwidget screenshot

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

dateEdit

Custom QDateEdit which only allows a list of valid days. Displayed in US format MM/DD/YYYY.
Based on Stackoverflow answer

tableWidget_buttonColumn

table widget with buttons

Custom QTableWidget with a column of buttons + a method to know which button was clicked.
From stackoverflow answer

About

Code examples in PyQt4 (Python2 and Python3)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages