2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
16
Task/Hello-world-Graphical/Ruby/hello-world-graphical-4.rb
Normal file
16
Task/Hello-world-Graphical/Ruby/hello-world-graphical-4.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
require 'gosu'
|
||||
|
||||
class Window < Gosu::Window
|
||||
|
||||
def initialize
|
||||
super(150, 50, false)
|
||||
@font = Gosu::Font.new(self, "Arial", 32)
|
||||
end
|
||||
|
||||
def draw
|
||||
@font.draw("Hello world", 0, 10, 1, 1, 1)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Window.new.show
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#_Note: this code must not be executed through a GUI
|
||||
require 'green_shoes'
|
||||
|
||||
Shoes.app do
|
||||
para "Hello world"
|
||||
end
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
require 'win32ole'
|
||||
WIN32OLE.new('WScript.Shell').popup("Hello world")
|
||||
Loading…
Add table
Add a link
Reference in a new issue