1 # 2 # tkclass.rb - Tk classes 3 # Date: 2000/11/27 09:23:36 4 # by Yukihiro Matsumoto <matz@caelum.co.jp> 5 # 6 # $Id: tkclass.rb 11708 2007-02-12 23:01:19Z shyouhei $ 7 8 require "tk" 9 10 TopLevel = TkToplevel 11 Frame = TkFrame 12 Label = TkLabel 13 Button = TkButton 14 Radiobutton = TkRadioButton 15 Checkbutton = TkCheckButton 16 Message = TkMessage 17 Entry = TkEntry 18 Spinbox = TkSpinbox 19 Text = TkText 20 Scale = TkScale 21 Scrollbar = TkScrollbar 22 Listbox = TkListbox 23 Menu = TkMenu 24 Menubutton = TkMenubutton 25 Canvas = TkCanvas 26 Arc = TkcArc 27 Bitmap = TkcBitmap 28 Line = TkcLine 29 Oval = TkcOval 30 Polygon = TkcPolygon 31 Rectangle = TkcRectangle 32 TextItem = TkcText 33 WindowItem = TkcWindow 34 BitmapImage = TkBitmapImage 35 PhotoImage = TkPhotoImage 36 Selection = TkSelection 37 Winfo = TkWinfo 38 Pack = TkPack 39 Grid = TkGrid 40 Place = TkPlace 41 Variable = TkVariable 42 Font = TkFont 43 VirtualEvent = TkVirtualEvent 44 45 def Mainloop 46 Tk.mainloop 47 end