A question about how to design this project

I'm making a basic image browser, and am confronting the age-old
problem of how to reduce flicker when advancing from image to image.
My main question is how to combine a DC with the other elements on the
page.

Here's a sketch of the layout:

http://sinkingsensation.com/dropbox/sketch.jpg

As the sketch shows, the image will be shown in the center, with
"next" and "previous" buttons on either side, and some text above that
shows the current position in the directory.

I'm wondering how people would lay this out? Regular bitmap buttons
for the buttons and a DC for the image in the center?

Would you place all the objects on a panel?

Or use multiple panels?

Thanks for any tips.

···

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

I'm making a basic image browser, and am confronting the age-old
problem of how to reduce flicker when advancing from image to image.
My main question is how to combine a DC with the other elements on the
page.

Here's a sketch of the layout:

http://sinkingsensation.com/dropbox/sketch.jpg

As the sketch shows, the image will be shown in the center, with
"next" and "previous" buttons on either side, and some text above that
shows the current position in the directory.

I'm wondering how people would lay this out? Regular bitmap buttons
for the buttons and a DC for the image in the center?

Almost. Where you say "a DC for the image in the center" I would say "a custom window class in the center that binds the EVT_PAINT event and draws the image using a wx.PaintDC"

Would you place all the objects on a panel?

Yes.

Or use multiple panels?

There probably isn't any need for that, other than the one where the image is drawn and the one that is the parent of all of them.

···

On 5/18/10 2:45 PM, wrybread wrote:

--
Robin Dunn
Software Craftsman

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en