Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
require 'gtk2'
|
||||
|
||||
window = Gtk::Window.new
|
||||
window.title = 'Goodbye, World'
|
||||
window.signal_connect(:delete-event) { Gtk.main_quit }
|
||||
window.show_all
|
||||
|
||||
Gtk.main
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
require 'tk'
|
||||
root = TkRoot.new("title" => "User Output")
|
||||
TkLabel.new(root, "text"=>"CHUNKY BACON!").pack("side"=>'top')
|
||||
Tk.mainloop
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#_Note: this code MUST be executed through the Shoes GUI!!
|
||||
|
||||
Shoes.app do
|
||||
para "CHUNKY BACON!", :size => 72
|
||||
end
|
||||
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