Hi 

i have found one solution:

#!/usr/bin/ruby -w

require 'gtk'

window = Gtk::Window.new(Gtk::WINDOW_TOPLEVEL)
        window.border_width 10
table = Gtk::Table.new(2, 2, false)

labelArtikelnummer = Gtk::Label.new "Artikelnummer =  "
labelArtikelnummer.set_alignment(0, 0.5)

labelKurzText1 = Gtk::Label.new "Kurztext1 = Hallo Manfred "

table.attach labelArtikelnummer, 0, 1, 0, 1,Gtk::EXPAND | Gtk::FILL, 
Gtk::EXPAND | Gtk::FILL,5,5

table.attach labelKurzText1, 0, 1, 1 ,2

window.add table
window.show_all
Gtk.main




Manfred Hansen wrote:

> Hello,
> 
> how can i set text (Artikelnummer = ) in the label on the left side




> not in the center.
> 
> Here is my code:
> 
> #!/usr/bin/ruby -w
> 
> require 'gtk'
> 
> window = Gtk::Window.new(Gtk::WINDOW_TOPLEVEL)
>         window.border_width 10
> table = Gtk::Table.new(2, 2, false)
> 
> labelArtikelnummer = Gtk::Label.new "Artikelnummer =  "
> #labelArtikelnummer.jtype = Gtk::JUSTIFY_LEFT
> labelArtikelnummer.set_justify(Gtk::JUSTIFY_LEFT)
> 
> labelKurzText1 = Gtk::Label.new "Kurztext1 = Hallo Manfred} "
> 
> table.attach labelArtikelnummer, 0, 1, 0, 1
> table.attach labelKurzText1, 0, 1, 1 ,2
> 
> window.add table
> window.show_all
> Gtk.main