I'm trying to write a sequencer (matrix) -widget, but I seem to be hitting a wall.
I have implemented a matrix editor using 1 large Pixmap displayed in a gtk.DrawingArea as the grid, and then drawing notes on the gtk.DrawingArea.window. This approach, however, becomes so slow it actually crashes X when handling Pixmaps of some size. I wanted to try and reprogram it using a gtk.Layout, but the Gtk C documentation tells me to draw to Layout.bin_window, but I have been unable to decode what this is in PyGtk. Some help? I've also considered the idea of not _drawing_ to the gdk.Window when creating the grid, but creating a small rectangle of the grid, and setting this as the bg_gc in the widgets style, however I get the message the bg_gc is only readable? How do I set styles then? Also, I have experimented with using gdk.Pixbufs instead of gdk.Pixmaps, but they only seem to work with gtk.Image and nothing else, drawing them to a gdk.Drawable just doesn't work, and only the gdk.Pixbuf.render_to_drawable actually exists, but doesn't do anything.... Is this just impossible with PyGtk? Of course I know I can't draw directly to the gdk.Pixbufs, this is not the problem, should anyone be confused. I sincerely hopy someone can help me, or I will probably have to drop the idea of implementing a sequencer in Gtk (hmmm... Qt, maybe (yes, this is a threat :P (no, not really ;) ))) Cheers... Cybolic / Christian _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
