Hello, everyone.
I have code at http://snow.cs.siue.edu/~unix/othello.tgz, and it's my
first time writing wxPython code. I followed the Double Buffering
Window tutorial at wxPython.org in the hopes to reduce flicker whenever
I decide to implement resizing.
Anyway, when my program starts, my pieces look like they're not in the
correct spots (the 4 center pieces). However, if you click on the 4
center pieces, your console will display "Square owned by" and one of
'white' or 'black'. Any other square that isn't a center piece,
including squares that look like they have a piece in them will say
"Square owned by nobody."
If you hit "Restart", the screen then displays properly. However, if
you hide the window under another window and then re-focus it, the
images are again all screwed up. AND, this only seems to be affecting
my double-buffered windows, nothing else on the window.
I've spent probably 24 hours trying to work this problem out, and I'm
not making any progress with it. Have one of you had this problem
before, and if so, what was the solution? Is it something I'm doing
wrong in my class inheritance, or something I'm missing? I've checked
and rechecked the code, and I've seemed to narrow it down to the images
just not showing correctly and confirmed that's the only problem.
Please, if any of you has any idea on this I would GREATLY appreciate
it. Thanks SO much!
I'm not subscribed to this list; so, if you could please email me
directly as well, that would be excellent. I'll make sure I respond to
the list as well in order to keep this in the open.
···
--
William Michael Grim
Student, Southern Illinois University at Edwardsville
Unix Network Administrator, SIUE, Computer Science dept.
Phone: (217) 341-6552
Email: wgrim@siue.edu