Sha256: 11c9382b9ecb14bb242930f528ec1ffccbca6a011e8cb19098f3c7aa4a470bcd
Contents?: true
Size: 977 Bytes
Versions: 1
Compression:
Stored size: 977 Bytes
Contents
# encoding: utf-8 require 'gtk2' require 'jldrill/model/items/Vocabulary' require 'jldrill/oldUI/GtkVocabView' module JLDrill::Gtk class GtkDisplayView < Gtk::Dialog def initialize(vocab, parentWindow) super("Vocabulary Display", parentWindow, Gtk::Dialog::DESTROY_WITH_PARENT, [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL], [Gtk::Stock::OK, Gtk::Dialog::RESPONSE_ACCEPT]) @quizV = GtkVocabView.new(vocab) refVocab = Vocabulary.new table = Gtk::Table.new(2, 1) table.attach(Gtk::Label.new("Quiz Vocab"), 0, 1, 0, 1, 0, 0, 10, 10) table.attach(@quizV, 0, 1, 1, 2, Gtk::FILL | Gtk::EXPAND, Gtk::FILL, 10, 10) self.vbox.add(table) end def getVocab vocab = @quizV.getVocab() return vocab end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | lib/jldrill/oldUI/GtkDisplayView.rb |