I suspect that on GTK, the smaller StaticText is getting set to the full size, so the sizer can't right-align it, but that's just a guess.
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
It's because of the SetMinSize((100,-1)) (like I mentioned earlier in the thread) which you left out of the code you sent yesterday. That forces the sizer to set the sizes of the labels to be the same, which truncates the second label on Linux where the font size is larger. The lack of alignment within the static text is probably a wxGTK glitch.
But like I wrote before the wx.FlexGridSizer is meant to the used in situations like this. Then you can let the sizer take care of ensuring the columns are large enough to accommodate all of the rows regardless of the label sizes, and it can easily right-align the whole widget instead of depending on the widget to align its own text.
···
On 2/12/10 2:26 AM, Prashant Saxena wrote:
I am reposting this topic again with some attachments.
The script is attached here to show the difference between two
platforms. The code is working fine on ms-win but behaving
completely different of gtk.