Sha256: 2d6a770142ca8df12a203ee8bd5721b372721dc36bb8e5a8c28dbe0d8bfbe946

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

# encoding: utf-8
require 'jldrill/views/gtk/widgets/QuizStatusBar'
require 'jldrill/contexts/DisplayQuizStatusContext'
require 'gtk2'

module JLDrill::Gtk

	class QuizStatusView < JLDrill::DisplayQuizStatusContext::QuizStatusView
	
        attr_reader :quizStatusBar
        	
		def initialize(context)
			super(context)
			@quizStatusBar = QuizStatusBar.new(self)
			@quizStatusBar.expandWidgetWidth
			@verified = nil
		end
		
		def getWidget
			@quizStatusBar
		end
		
		def update(quiz)
		    @quizStatusBar.update(quiz.status)
		end
    end    
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.6.0.1 lib/jldrill/views/gtk/QuizStatusView.rb