Quoting "Joel Juvenal Rivera Rivera" <joel...@gmail.com>: > Hello, > I hope somebody could help me with this... > > when I do: > paper = gtk.PaperSize() > paper.set_size(216,140,gtk.UNIT_MM) > > raise this warning: > GtkWarning: gtk_paper_size_set_size: assertion `size->is_custom' failed > > And the size of the paper remains unchanged.
You could try the following to create a custom paper size: >>> paper = gtk.paper_size_new_custom('newcustom', >>> 'new_custom_papersize', 216, 140, gtk.UNIT_MM) >>> paper.is_custom() True Regards, Dieter ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/