On Thu, 10 Oct 2013 09:43:10 -0400, lloyd konneker boo...@nc.rr.com
wrote:
This code worked in PyQt4 and Qt4 to get a dictionary of paper size
names:
paperSizeNames = {}
print(vars(QPrinter))
for key, value in vars(QPrinter).items(): # Python2 iteritems():
if isinstance(value,
This code worked in PyQt4 and Qt4 to get a dictionary of paper size names:
paperSizeNames = {}
print(vars(QPrinter))
for key, value in vars(QPrinter).items(): # Python2 iteritems():
if isinstance(value, QPrinter.PageSize):
print(key, value)
paperSizeNames[value] = key
It no longer