Ok, I get it, I was trying to change a predefined size and I didn't know that function.
Thank You Dieter. El mié, 03-03-2010 a las 19:49 +0100, Dieter Verfaillie escribió: > Quoting "Joel Juvenal Rivera Rivera" <[email protected]>: > > 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 [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
