Problem with PageSetupDialog

Hello,

I'm new to wxPython and to this list. I have a little problem. I'm
trying to setup a wx.PageSetupDialog dialog using the example from the
demo application. Additonally, I have added a call to
EnablePrinter(True) to the dialog data object. However, I can't see
any printer button in the dialog. I'm using wxPython 2.9.1.1 (32 bit)
on MS windows 7 64.

Is this a known problem or is there anything I did wrong with my
setup.

Below you can find my example...

Best,
Johannes

    def OnButtonPageSetup(self, event):
        dlg_data = wx.PageSetupDialogData()

        dlg_data.EnablePrinter(True)

        dlg = wx.PageSetupDialog(self, dlg_data)

        if dlg.ShowModal() == wx.ID_OK:
            data = dlg.GetPageSetupData()

        dlg.Destroy()

Over the years the various native platform print dialogs have changed and evolved, and sometimes they no longer have the same options or features as they did before. I expect that this is one of those cases and that you simply can't pick a printer from this dialog any more.

···

On 2/3/11 6:27 AM, Johannes wrote:

Hello,

I'm new to wxPython and to this list. I have a little problem. I'm
trying to setup a wx.PageSetupDialog dialog using the example from the
demo application. Additonally, I have added a call to
EnablePrinter(True) to the dialog data object. However, I can't see
any printer button in the dialog. I'm using wxPython 2.9.1.1 (32 bit)
on MS windows 7 64.

Is this a known problem or is there anything I did wrong with my
setup.

--
Robin Dunn
Software Craftsman

Hello Robin,

"Robin Dunn" <robin@alldunn.com> schrieb im Newsbeitrag
news:4D4B21E1.4030007@alldunn.com...

···

On 2/3/11 6:27 AM, Johannes wrote:

Over the years the various native platform print dialogs have changed and
evolved, and sometimes they no longer have the same options or features as
they did before. I expect that this is one of those cases and that you
simply can't pick a printer from this dialog any more.

You are right. I have googled a bit and it actually seems that this feature
isn't supported on the Vista and Windows 7 patform anymore.

Best,
Johannes