Sudoku PyGObject port progress



Hi All,

The PyGObject port of sudoku is now running - albeit with a metric ton
of rendering glitches. This is due to the gtk+-2 -> gtk+-3 transition,
in particular the draw signal and stylecontext/theming changes. Please
note that the random color scheme is somewhat intentional (see
debug_set_color_rgba in number_box.py) - it indicates parts where the
drawing/theming clearly needs to be fixed.

I am looking for help completing the port because I do not recall
exactly what sudoku used to look like, nor how the highlighter etc used
to work, so it is hard for me to restore the functionality.

I have noticed the following limitations/bugs with the current port
    * focus tracking seems to be a bit broken - perhaps due to moving
      from a GtkWidget child to a GtkDrawingArea one. This is tied up
      with the GtkStateFlags part of the GtkStyleContext migration
    * I should be a bit smarter with performance - my naive
      implementation redraws the entire board every time draw is
      called, I suspect only the selected cell should be redraw, or
      at least only those cells that change due to the highlighter
    * focus/popup of the number selector box seems a little fishy,
      I would have expected it to behave more like a menu, and not
      have multiple such boxes visible (although as I said, I do
      not recall how sudoku used to behave)
    * pixbuf_transform_color needs to be reconsidered/rewritten
      to operate on cairo surfaces. Perhaps the track png could be
      painted to a cairo surface with the correct operator magic so
      the black of the image was recolored into something else.

So, please help with number_box.py, and please help test.

Regards,

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]