On Tue, 27 Jan 2004, Luc Lefebvre wrote: > Whenever I try to set a DrawingArea widget width > 10000, glade reverts > the value to 10000. Oddly enough when I do > drawingarea.set_size_request(width,height) it will accept the value but > then the drawing appears to go wonky. Is there a limit to the width > that one can assign to a DrawingArea widget? Things do seem to break > down passed 10000.
What are you actually trying to do? There will be two issues that I can think of right off the bat. First, if the DrawingArea is 10,000 x 10,000 square, Gtk immediately allocates a backing store of 100,000,000 pixels x 3 bytes/pixel or approximately 300 Megabytes right off the top just for the backing store. How much memory do you have in your computer? Second, X requests generally fail when their values get outside of a signed short (-32768/+32767). If you really want coordinates that cover that large a dynamic range, you probably want to handle that stuff yourself, and you might want to think about using PyOpenGL/PyGtkGLExt which can use floating point operands (at least 24 bits of precision) or standard integers (normally at least 32 bits of precision). -a _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
