update run
This commit is contained in:
parent
6cd4c94cf5
commit
77ec07e425
10 changed files with 16 additions and 15 deletions
|
@ -1,9 +1,10 @@
|
|||
# ActiveX控件
|
||||
# QAxWidget
|
||||
|
||||
## [1、显示Word、Excel、PDF文件](显示word_excel_pdf.py)
|
||||
## 1、显示Word、Excel、PDF文件
|
||||
[运行 ViewOffice.py](ViewOffice.py)
|
||||
|
||||
1. 利用 `Word.Application` 打开Word文件
|
||||
1. 利用 `Excel.Application` 打开Excel文件
|
||||
1. 利用 `Adobe PDF Reader` 打开PDF文件(前提先装PDF软件)
|
||||
|
||||
![截图](ScreenShot/显示word_excel_pdf.png)
|
||||
![ViewOffice](ScreenShot/ViewOffice.png)
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
@ -6,7 +6,7 @@ Created on 2017年4月6日
|
|||
@author: Irony."[讽刺]
|
||||
@site: https://pyqt5.com, https://github.com/892768447
|
||||
@email: 892768447@qq.com
|
||||
@file: TableView
|
||||
@file: ViewOffice
|
||||
@description:
|
||||
'''
|
||||
from PyQt5.QAxContainer import QAxWidget
|
|
@ -1,7 +1,7 @@
|
|||
# QComboBox
|
||||
|
||||
## 1、Data Linkage
|
||||
[Run](CityLinkage.py)
|
||||
[Run CityLinkage.py](CityLinkage.py)
|
||||
|
||||
Three level linkage, data file is data.json
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# QComboBox
|
||||
|
||||
## 1、下拉数据关联
|
||||
[运行](CityLinkage.py)
|
||||
[运行 CityLinkage.py](CityLinkage.py)
|
||||
|
||||
一个省市区关联的三级联动,数据源在data.json中
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# QListView
|
||||
|
||||
## 1、腾讯视频热播列表
|
||||
[运行](HotPlaylist.py)
|
||||
[运行 HotPlaylist.py](HotPlaylist.py)
|
||||
|
||||
简单思路说明:
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# QListView
|
||||
|
||||
## 1、腾讯视频热播列表
|
||||
[运行](HotPlaylist.py)
|
||||
[运行 HotPlaylist.py](HotPlaylist.py)
|
||||
|
||||
简单思路说明:
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# QListView
|
||||
|
||||
## 1. Custom Widget Item
|
||||
[Run](CustomWidgetItem.py)
|
||||
[Run CustomWidgetItem.py](CustomWidgetItem.py)
|
||||
|
||||
![CustomWidgetItem](ScreenShot/CustomWidgetItem.png)
|
||||
|
||||
## 2. Custom Widget Sort Item
|
||||
[Run](CustomWidgetSortItem.py)
|
||||
[Run CustomWidgetSortItem.py](CustomWidgetSortItem.py)
|
||||
|
||||
![CustomWidgetSortItem](ScreenShot/CustomWidgetSortItem.gif)
|
|
@ -1,11 +1,11 @@
|
|||
# QListView
|
||||
|
||||
## 1、显示自定义Widget
|
||||
[运行](CustomWidgetItem.py)
|
||||
[运行 CustomWidgetItem.py](CustomWidgetItem.py)
|
||||
|
||||
![CustomWidgetItem](ScreenShot/CustomWidgetItem.png)
|
||||
|
||||
## 2、显示自定义Widget并排序
|
||||
[运行](CustomWidgetSortItem.py)
|
||||
[运行 CustomWidgetSortItem.py](CustomWidgetSortItem.py)
|
||||
|
||||
![CustomWidgetSortItem](ScreenShot/CustomWidgetSortItem.gif)
|
|
@ -1,7 +1,7 @@
|
|||
# QListView
|
||||
|
||||
## 1、删除自定义Item
|
||||
[运行](DeleteCustomItem.py)
|
||||
[运行 DeleteCustomItem.py](DeleteCustomItem.py)
|
||||
|
||||
1. 删除item时先要通过`QListWidget.indexFromItem(item).row()`得到它的行数
|
||||
2. 通过`takeItem`函数取出该Item并删除掉,`item = self.listWidget.takeItem(row)`
|
||||
|
@ -11,12 +11,12 @@
|
|||
![CustomWidgetItem](ScreenShot/DeleteCustomItem.gif)
|
||||
|
||||
## 2、自定义可拖拽Item
|
||||
[运行](DragDrop.py)
|
||||
[运行 DragDrop.py](DragDrop.py)
|
||||
|
||||
![CustomWidgetSortItem](ScreenShot/DragDrop.gif)
|
||||
|
||||
## 3、腾讯视频热播列表
|
||||
[运行](HotPlaylist.py)
|
||||
[运行 HotPlaylist.py](HotPlaylist.py)
|
||||
|
||||
简单思路说明:
|
||||
|
||||
|
|
Loading…
Reference in a new issue