Printer selection in PageSetupDialog

Hi:

When using PageSetupDialog in wxPython 2.8.10.1 (gtk2-unicode),
a button "Printer..." appears in the dialog that has no effect when
pressed.

I am using Debian Squeeze with kde and no gnome installed.

I tried EnablePrinter(False), which grays out the button.

However, I would like to get the button working correctly.
Alternatively, it should disappear completely from the dialog.

How can this be achieved?

Regards

Martin

There are a couple different printing backend libraries that can be used on Linux and so the answer may depend on how your wx packages were built. If libgnomeprint is used then the dialogs actually come from there and the printing support will be more capable but we have less control over it. Otherwise the built-in wx postscript support code will be used, which is less capable but we have more control over it.

Back to your question, I'm not as familiar with the lower level details of printing on GTK as I am on the other platforms, so you may need to ask about this on wx-users.

···

On 4/12/11 4:01 PM, Martin Manns wrote:

Hi:

When using PageSetupDialog in wxPython 2.8.10.1 (gtk2-unicode),
a button "Printer..." appears in the dialog that has no effect when
pressed.

I am using Debian Squeeze with kde and no gnome installed.

I tried EnablePrinter(False), which grays out the button.

However, I would like to get the button working correctly.
Alternatively, it should disappear completely from the dialog.

How can this be achieved?

--
Robin Dunn
Software Craftsman

> When using PageSetupDialog in wxPython 2.8.10.1 (gtk2-unicode),
> a button "Printer..." appears in the dialog that has no effect when
> pressed.
>
> I am using Debian Squeeze with kde and no gnome installed.
>
> I tried EnablePrinter(False), which grays out the button.

There are a couple different printing backend libraries that can be
used on Linux and so the answer may depend on how your wx packages
were built. If libgnomeprint is used then the dialogs actually come
from there and the printing support will be more capable but we have
less control over it. Otherwise the built-in wx postscript support
code will be used, which is less capable but we have more control
over it.

The problem seems to be there only if libgnomeprint is not used.

Back to your question, I'm not as familiar with the lower level
details of printing on GTK as I am on the other platforms, so you may
need to ask about this on wx-users.

I am going to post the question there, too.

Regards

Martin

···

On Tue, 12 Apr 2011 18:21:20 -0700 Robin Dunn <robin@alldunn.com> wrote:

On 4/12/11 4:01 PM, Martin Manns wrote: