import sys, os
os.environ["PYTHONIOENCODING"] = 'utf-8'
sys.stdout.reconfigure(encoding='utf-8')
此法可避免console print時的cp950 error
2019年5月22日 星期三
2019年5月14日 星期二
Timers cannot be started from another thread可能解法
當遇到
如果是PyQT5的程式,並且有用到thread或QThread時,
有可能是,QT的物件,並沒有全部放到信號(Signal)中,去執行,
試著將Qt的物件,如QtGui, QtWidgets ...等,都放到Signal中(QtCore.pyqtSignal)
用emit()執行,試試看,是否沒有錯誤訊息了…
QObject::startTimer: Timers cannot be started from another thread
或者
QObject::killTimer: Timers cannot be stopped from another thread如果是PyQT5的程式,並且有用到thread或QThread時,
有可能是,QT的物件,並沒有全部放到信號(Signal)中,去執行,
試著將Qt的物件,如QtGui, QtWidgets ...等,都放到Signal中(QtCore.pyqtSignal)
用emit()執行,試試看,是否沒有錯誤訊息了…
2019年5月7日 星期二
2019年5月6日 星期一
To display a less than sign (<) we must write: < or <
To display a less than sign (<) we must write: < or <
A common character entity used in HTML is the non-breaking space:
A common character entity used in HTML is the non-breaking space:
The non-breaking hyphen (‑) lets you use a hyphen character (‑) that won't break.
Some Other Useful HTML Character Entities
Result | Description | Entity Name | Entity Number |
---|---|---|---|
non-breaking space | |   | |
< | less than | < | < |
> | greater than | > | > |
& | ampersand | & | & |
" | double quotation mark | " | " |
' | single quotation mark (apostrophe) | ' | ' |
¢ | cent | ¢ | ¢ |
£ | pound | £ | £ |
¥ | yen | ¥ | ¥ |
€ | euro | € | € |
© | copyright | © | © |
® | registered trademark | ® | ® |
Note: Entity names are case sensitive.
訂閱:
文章 (Atom)