Re: [PyQt] Missing QPageSize enum in vars(QPrinter) ?

2013-10-12 Thread Phil Thompson
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,

[PyQt] Missing QPageSize enum in vars(QPrinter) ?

2013-10-10 Thread lloyd konneker
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