M
Mattia Galati
Hy everybody, I've just started learning a bit of this amazing language
but I've encountered some problems.
I have a sqlite3 database wich contains a table and I want to populate a
Gtk::ComboBox with the data on it.
To create the GUI I've used Glade and this is a part of my code:
@db.execute("SELECT cat FROM table ORDER BY cat") do |row|
puts row
end
Now, the script print the rows correctly, but I can't manage to store
them in my ComboBox called trough
@combo = @glade["my_combo"]
what should I do?
Sorry for my bad english.
but I've encountered some problems.
I have a sqlite3 database wich contains a table and I want to populate a
Gtk::ComboBox with the data on it.
To create the GUI I've used Glade and this is a part of my code:
@db.execute("SELECT cat FROM table ORDER BY cat") do |row|
puts row
end
Now, the script print the rows correctly, but I can't manage to store
them in my ComboBox called trough
@combo = @glade["my_combo"]
what should I do?
Sorry for my bad english.