[PyQt5 application example] obtain urban weather forecast

1, Get weather data There are two ways to obtain weather data using Python: 1. Obtain the HTML page of the weather forecast website by crawling, and then parse the content of the HTML page by XPath or beautiful soup; 2. Through the API provided by the weather forecast website, the structured data can be obtained directly, eliminating the s ...

Added by chigley on Wed, 13 Oct 2021 02:27:29 +0300

Day 28 | learn PyQt5, QTreeWidget of advanced control

The tree structure is implemented through QTreeWidget and qtreewidgettitem classes, in which qtreewidgettitem class implements the addition of nodes. QTreeWidget is a hierarchical nested structure. The outer and inner layers of a tree structure have similar structures. It is often used to represent a data structure with one upper layer and mult ...

Added by fangfang on Mon, 04 Oct 2021 23:22:54 +0300

Day 25 | day 28 learn PyQt5, QTableWidget of advanced controls

The table control also has a QTableWidget, which inherits from QTableView. The main difference between QTableWidget and QTableView is that QTableView can use custom data model to display content, while QTableWidget can only use standard data model, and its cell data is realized through qtablewidgettitem object. In general, using QTableWidget ca ...

Added by dbrown on Mon, 04 Oct 2021 05:57:34 +0300