or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
tags:
python
PyQt 實作
環境安裝
Qt Designer
VSCode PyQt5擴充套件
執行pyqt designer
C:\Users\你的電腦帳號\AppData\Local\Programs\Python\Python36-32\Scripts\designer.exe
範例程式
flyingfish.ui (完全透過pyqt designer產生)
當元件指定事件發生時呼叫指定函數
最終事件綁定

儲存附檔名為.ui的檔案,內容如下
flyingfish.py
a. 載入pyqt套件
b. 載入designer設計好的ui檔
c. 呈現UI介面、狀態列訊息
d. 設定檔案儲存路徑
e. 儲存youtube音樂檔、影片檔
完整python檔案
打包成exe及壓縮成zip
a. ico圖檔
b. ui介面檔
完成檔
flyingfish.zip
異常排除
Q: 程式圖示無法更換成指定ico檔
notepad範例
參考資料