Hi there. I'm a bit newbie in gtk and python, but I have a strange issue there.
I just wanted to play with the layout of my widgets (let's say a progress
bar and a button). So I used some gtkalignment:
# queue button
buttonbox = GtkHBox()
buttonbox.show()
self.queue_button = GtkButton(label='Queue it!')
self.queue_button.connect('clicked', self.queue_button_clicked)
align = GtkAlignment(0.5, 0.5, 0.05, 0.99)
buttonbox.pack_start(align, expand=TRUE)
align.show()
align.add(self.queue_button)
self.queue_button.show()
vbox1.pack_start(buttonbox, expand=FALSE, padding=2)
align = GtkAlignment(0.5, 0.5, 0.95, 0.99)
align.show()
# Create a Adjusment object to hold the range of the
# progress bar
self.pbar_adj = GtkAdjustment(0, 0, 10, 1, 0, 0)
# Create the GtkProgressBar using the adjustment
self.pbar = GtkProgressBar(self.pbar_adj)
self.pbar.set_format_string("%v from %u (%p%%)")
self.pbar.set_value(0)
align.add(self.pbar)
self.pbar.show()
self.pbar.set_show_text(TRUE)
self.pbar.set_activity_mode(FALSE)
self.pbar.set_bar_style(PROGRESS_CONTINUOUS)
buttonbox.pack_start(align, expand=TRUE)
I'm not sure I'm right in the way I use the alignment. Anyway, what's
weird is that I got different results depending on the content of the
environment variable LC_ALL.
With LC_ALL=C, the widgets look OK (event if it's not totally what I want)
With LC_ALL=fr_FR, LC_ALL=fr_FR@euro, or LC_ALL=french, nothing is
apparently done.
(See screenshots attached to see what I try to mean.)
So, even if my code is wrong, it should give the same layout, no ?
Is there a known issue with gtk or python concerning that ?
Do you think it's more :
- a gtk problem ?
- a python problem ?
- a python-gtk problem ?
System: Debian GNU/Linux, sid version.
Python-gtk version: 0.6.8-19
If ever you have an idea...
Thanks in advance (and don't blame my poor english, please :-] )
--
Manu
screenshot.tar.gz
Description: Binary data
