[exerb-eng:0070] EXERB and TK

Back to archive index

peter glass****@yahoo*****
Sat Feb 2 00:58:34 JST 2008


hi
  i am trying to make the following code to an exe
  require 'tk'
  root = TkRoot.new
  root.title = "Window"
  button = TkButton.new(root)
  button.text = "Button"
  button.place('height' => 25,
             'width'  => 50,
             'x'      => 10,
             'y'      => 10)
  Tk.mainloop
   
  it runs okay using the command:  ruby butn.rb
then i have applied the command exerb butn.rb
and it generated the file butn.exe
but when i want to run the butn.exe it fails with a message:
butn.rb:1:in `require': No such file to load -- tk (LoadError)
        from butn.rb:1
  what should i do
  i am using exerb v4.2  and ruby 1.8.6 on windows xp
  thanks
   
   
   
   

       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
Descargar 


More information about the exerb-english mailing list
Back to archive index