LWTK
LWTK

Reputation: 1

Print/Export GUI interface at current state Ruby Shoes

Given the simple GUI posted down below, how can I create and save a screenshot of what the results of the code is? I don't care if I need to print it, export it to pdf, or save as a picture but I don't want to ask the user to screenshot or snip the page.

Shoes.app do

# Post and location of logo
  @moveme =  image 'C:\Users\warnerl\Documents\RubyFiles\TK_Dashboard_Logo.jpg', :width => 200
  @moveme.move(400,0)

# Gets users first and last name and saves them as variables
  @UserFirstName = ask("Please input your first name.")
  @UserLastName = ask("Please input your last name.")

# Create Certificate
  stack{
    para 'You got 100%'

     para "#{@UserFirstName} #{@UserLastName}"
     para 'Congratulations you passed!'

}
end

Upvotes: 0

Views: 104

Answers (0)

Related Questions