> Okay, I may be the only person in the world with this problem. That > seems to be a recent theme since I took on this latest project. > > I'm trying to add Arabic support to my software (and hopefully > eventually Hebrew and other Right-to-Left languages.) I have a module > for coding still images written using FloatCanvas. (FloatCanvas has been > fantastic for what I needed, by the way. Thank you for sharing it.) > > So when I'm testing my application with my Arabic translation, I have > two issues. > > 1. My graphic file shows up BACKWARDS. Yup. It's a mirror image of > what it's supposed to be. My graphic file has been reversed, as if it > were text. > > 2. (And this is the fun part!) When I try to MOVE my image, using the > "hand" tool I got from the Float Canvas Demo application, my image > flickers as I move it, jumping between mirrored and correctly > displayed! While I'm dragging, the image is NOT reversed, but if I stop > moving the mouse or release the mouse button, my image flips back to > being backwards. > > I've noticed automatic image reversal in other places in > wxPython/wxWidgets -- Toolbar Buttons, for example, and Print Preview > canvas display -- and I think the solution to my issue will be pretty > simple. I'll try declaring the control as Left-to-Right regardless of > the localization setting. If that doesn't work, I'll manually mirror my > image to get it to display correctly. But in that later case, I'll > still have image flipping during drags. > > If I get this resolved, I'll let you know what works. But I wanted to > share this.
I love simple solutions to complex problems. self.canvas.SetLayoutDirection(wx.Layout_LeftToRight) took care of the problem by indicating that I ALWAYS want my image to appear with its original orientation. Ah, the joys of advanced i18n. David -- David K. Woods, Ph.D. Researcher, Transana Lead Developer Wisconsin Center for Education Research University of Wisconsin, Madison http://www.transana.org _______________________________________________ FloatCanvas mailing list [email protected] http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
