[PyQt] Simple QFontMetrics example crashes Python!
Nathan McCorkle
nmz787 at gmail.com
Fri Feb 27 20:08:40 GMT 2015
Am I doing something wrong? I can't find info on whether I can do this
without having a GUI running (I am working on a drawing application
which is all terminal/non-GUI based).
from PyQt5 import QtGui
f = QtGui.QFont("times", 24)
fm = QtGui.QFontMetrics(f)
fm.width("whatup dawg???")
OS: Windows Server 2008 R2
Problem signature:
Problem Event Name: APPCRASH
Application Name: python.exe
Application Version: 0.0.0.0
Application Timestamp: 53b1ee02
Fault Module Name: Qt5Gui.dll
Fault Module Version: 5.3.2.0
Fault Module Timestamp: 54118980
Exception Code: c0000005
Exception Offset: 0000000000020d38
OS Version: 6.1.7601.2.1.0.18.10
Locale ID: 1033
Additional Information 1: 3896
Additional Information 2: 38963f06e658a932323092b5892179f0
Additional Information 3: c43a
Additional Information 4: c43af971f9eaa49533003c59f2e0faf9
--
-Nathan
More information about the PyQt
mailing list