From: Philip M=FCller <me / alienemperor.de>
Subject: BLT::Tabnotebook - tabnotebook.tcl not found
Date: Sat, 22 Nov 2008 03:57:43 +0900
Message-ID: <caea0cee3b4ab89f3e99b5804ae0b4f5 / ruby-forum.com>
> I tried to use BLT::Tabnotebook to put my existing Tk components in
> Tabs, but it just doesn't work.

I'm very sorry. Probably, it depends on a bug on tkextlib/blt.rb.
Please try the following patch.

Index: blt/vector.rb
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- blt/vector.rb	(revision 20298)
+++ blt/vector.rb	(working copy)
@@ -49,11 +49,11 @@
         size =3D size.join(':')
       end
       if size
-        @id =3D INTERP._invoke('::blt::vector', 'create', =

-                             "#auto(#{size})", *hash_kv(keys))
+        @id =3D TkCore::INTERP._invoke('::blt::vector', 'create', =

+                                     "#auto(#{size})", *hash_kv(keys))=

       else
-        @id =3D INTERP._invoke('::blt::vector', 'create', =

-                             "#auto", *hash_kv(keys))
+        @id =3D TkCore::INTERP._invoke('::blt::vector', 'create', =

+                                     "#auto", *hash_kv(keys))
       end
 =

       TkVar_ID_TBL.mutex.synchronize{
@@ -68,7 +68,7 @@
       @trace_opts =3D nil
 =

       # teach Tk-ip that @id is global var
-      INTERP._invoke_without_enc('global', @id)
+      TkCore::INTERP._invoke_without_enc('global', @id)
     end
 =

     def destroy
@@ -250,7 +250,7 @@
       @trace_opts =3D nil
 =

       # teach Tk-ip that @id is global var
-      INTERP._invoke_without_enc('global', @id)
+      TkCore::INTERP._invoke_without_enc('global', @id)
     end
   end
 end
Index: blt.rb
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- blt.rb	(revision 20298)
+++ blt.rb	(working copy)
@@ -26,14 +26,14 @@
     PATCH_LEVEL =3D tk_call('set', 'blt_patchLevel')
 =

     begin
-      lib =3D INTERP._invoke('set', 'blt_library')
+      lib =3D TkCore::INTERP._invoke('set', 'blt_library')
     rescue
       lib =3D ''
     end
     LIBRARY  =3D TkVarAccess.new('blt_library', lib)
 =

     begin
-      lib =3D INTERP._invoke('set', 'blt_libPath')
+      lib =3D TkCore::INTERP._invoke('set', 'blt_libPath')
     rescue
       lib =3D ''
     end

-- =

Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)