打印/导出当前状态Ruby Shoes的GUI界面

时间:2018-06-13 14:15:37

标签: ruby shoes

鉴于下面发布了简单的GUI,我如何创建并保存代码结果的屏幕截图?我不在乎我是否需要打印它,将其导出为pdf,或者保存为图片,但我不想让用户截图或剪切页面。

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

0 个答案:

没有答案