Sha256: df4bb33d76a63dc883a5ae4bdf48b48fc63ea8f3b26277e571e760eb34a68369

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

# encoding: utf-8
require 'jldrill/views/gtk/widgets/PromptWindow'
require 'jldrill/contexts/PromptContext'
require 'gtk2'

module JLDrill::Gtk

	class PromptView < JLDrill::PromptContext::PromptView
        attr_reader :selectorWindow
        	
		def initialize(context, title, message)
			super(context, title, message)
			@promptWindow = PromptWindow.new(self, title, message)
		end
		
		def getWidget
			@promptWindow
		end

        def destroy
            @promptWindow.destroy
        end

        def run
            @response = @promptWindow.execute
            @response
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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