Just found this, which should get me (and anyone else looking for help
with pygtk and gnomeprint) on my way:

http://cvs.gnome.org/viewcvs/gnome-python/gnome-python-extras/examples/gnomeprint/README?view=markup

On Tue, 2005-08-23 at 16:50 -0400, Michael R Head wrote:
> I'm trying to build a simple pygtk app that sends a postscript stream to
> a printer. I'd like to use the gnomeprint and gnomeprint.ui packages,
> since they provide the nice printer selection mechanism that integrates
> with cups, but I've having trouble figuring out how I should use the
> API. I'm starting with this:
> 
> ==== snip ====
> print_config = gnomeprint.Config()
> print_job = gnomeprint.Job(print_config)
> print_dialog = gnomeprint.ui.Dialog(job=print_job, title="Print it")
> print_dialog.run()
> ==== snip ====
> 
> I'm getting a bunch of warnings and the dialog doesn't populate:
> 
> ==== output ====
> ** (.:25200): CRITICAL **: gpa_node_get_path_value: assertion `node != NULL' 
> failed
> ** (.:25200): CRITICAL **: gpa_node_get_path_value: assertion `node != NULL' 
> failed
> ** (.:25200): WARNING **: gpa_init not called, gpa_get_printers failed
> (.:25200): GLib-GObject-WARNING **: invalid (NULL) pointer instance
> (.:25200): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 
> `G_TYPE_CHECK_INSTANCE (instance)' failed
> (.:25200): GLib-GObject-WARNING **: invalid (NULL) pointer instance
> (.:25200): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 
> `G_TYPE_CHECK_INSTANCE (instance)' failed
> ** (.:25200): CRITICAL **: gpa_node_get_child: assertion `node != NULL' failed
> ** (.:25200): CRITICAL **: gpa_node_lookup: assertion `GPA_IS_NODE(node)' 
> failed
> ** (.:25200): CRITICAL **: gpa_node_lookup: assertion `GPA_IS_NODE(node)' 
> failed
> ** (.:25200): CRITICAL **: gpa_settings_selector_construct: assertion 
> `ss->printer != NULL' failed
> (.:25200): GLib-GObject-WARNING **: invalid (NULL) pointer instance
> (.:25200): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 
> `G_TYPE_CHECK_INSTANCE (instance)' failed
> ** (.:25200): CRITICAL **: gpa_node_lookup: assertion `GPA_IS_NODE(node)' 
> failed
> ** (.:25200): CRITICAL **: gpa_node_get_path_value: assertion `node != NULL' 
> failed
> ** (.:25200): CRITICAL **: gpa_node_get_path_value: assertion `node != NULL' 
> failed
> ** (.:25200): CRITICAL **: gpa_node_get_path_value: assertion `node != NULL' 
> failed
> ** (.:25200): WARNING **: gpa_init not called, gpa_get_printers failed
> ** (.:25200): CRITICAL **: gpa_node_get_child: assertion `node != NULL' failed
> ** (.:25200): CRITICAL **: gpa_node_lookup: assertion `GPA_IS_NODE(node)' 
> failed
> (.:25200): libgnomeprintui-CRITICAL **: gnome_paper_selector_construct: 
> assertion `printer != NULL' failed
> ==== output ====
> 
> I imagine I'm supposed to be setting some things in my print_config
> object, but I don't really know what, and there don't seem to be any
> good tutorials on gnomeprintui for either python or C. I did find this
> post < http://www.daa.com.au/pipermail/pygtk/2003-October/006087.html >
> from a while back, but I didn't find a response or the results of
> Gustavo's work.
> 
> suggestions?
> 
> thanks,
> mike
> 
-- 
Michael R Head <[EMAIL PROTECTED]>
burner | suppressingfire | firestorm | phoenix | firefighter

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to