Re: [PyQt] How to install pyQt on a Mac ?

2009-08-31 Thread Robert J. Hansen
Phil Thompson wrote: > The same as any other Unix style platform. It's also worth mentioning that it's available in both Fink and MacPorts. The version in Fink is slightly out of date (4.4.1); I don't know about MacPorts. ___ PyQt mailing listPyQt@

Re: [PyQt] Printing a widget

2009-07-30 Thread Robert J. Hansen
Are you accounting for the higher DPI of printers (300, 600) vs that of the screen (72 or 90)? You'll need to scale accordingly. I am not; thank you. Now for a follow-up question: is there any way to programmatically discover the DPI of the screen? QPrinter has a .resolution() which I'm a

[PyQt] Printing a widget

2009-07-30 Thread Robert J. Hansen
For a piece of code I'm working on, I need the ability to render a QWidget to the printer directly. The logic goes something like this: def printout(self): widget = self.tab_widget.currentWidget() if widget == None: # The 'print' button should've been disabled; # do so