Hoi,
I tried to follow the example from the "wxPython in Action" book yesterday to
achieve printing from data in a TextCtrl. Before modifying anything I started
the downloaded -unmodified- example ('printing.py') and encountered a few
problems:
- Selecting the menu item 'Print ...' results in the following warnings on
the console:
(python:6345): GLib-GObject-WARNING **: g_object_new_valist: object class
`GnomePrintDialog' has no property named `config'
(python:6345): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(python:6345): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed
Any idea what causes these problems and how I can turn these warnings off?
- Creating PDFs does not work. But my printing manager indicates that a job is
send to the only installed physical printer (my default printer), named
'(stdin)'. Creating PDFs is not crucial for me in this context. Still, I
would prefer this working. What are the prerequisites for this? Or is there a
way that the option to create a PDF doesn't get displayed in the dialog? (BTW
creating some postscript file works fine.)
Anything else works fine.
Similar things came up on the list before, but I couldn't find these specific
problems described before. Forgive if I overlooked what I should have seen.
Oh, and I should mention that I'm running SuSE-linux (10.0) and wx version is
still 2.6.1.0 with python 2.4.1.
Despite of these little problems, I'd like to say thanks for these nice
examples from the book.
TIA
Christian