mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
41d41fbdb9
routine creates a Tcl/Tk interpreter and deletes it. However, init cost of Tk's MainWindow is not so small. And that makes it impossible to use libraries written with Tcl functions only on an environment without a graphical display. This changes support delaying initalization of Tk_Stubs until the script needs Tk. * ext/tk/stubs.h: New file. Define prototypes and return codes of functions on stubs.c. * ext/tk/tcltklib.c: Support delaying initalization of Tk_Stubs until the script needs Tk. * ext/tk/tcltklib.c: Show friendly error messages for errors on initialization. * ext/tk/tcltklib.c: Avoid SEGV on ip_finalize() when ruby is exiting and $DEBUG is true. (Not fix. If you know the reason of why, please fix it.) * ext/tk/tkutil/tkutil.c (ary2list, ary2list2): bug fix on handling of encoding. * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string don't work propery. * ext/tk/lib/tk.rb: Forget extending Tk::Encoding module to Tk. * ext/tk/lib/tk/variable.rb: TkVarAccess fails to initialize the object for an element of a Tcl's array variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |
||
---|---|---|
.. | ||
tk | ||
tkextlib | ||
multi-tk.rb | ||
README | ||
remote-tk.rb | ||
tcltk.rb | ||
tk.rb | ||
tkafter.rb | ||
tkbgerror.rb | ||
tkcanvas.rb | ||
tkclass.rb | ||
tkconsole.rb | ||
tkdialog.rb | ||
tkentry.rb | ||
tkfont.rb | ||
tkmacpkg.rb | ||
tkmenubar.rb | ||
tkmngfocus.rb | ||
tkpalette.rb | ||
tkscrollbox.rb | ||
tktext.rb | ||
tkvirtevent.rb | ||
tkwinpkg.rb |
README this file multi-tk.rb multiple Tk interpreter (included safe-Tk) support remotei-tk.rb control remote Tk interpreter on the other process support tk.rb Tk interface tk/ library files construct Ruby/Tk tkextlib/ non-standard Tcl/Tk extension support libraries ********************************************************************* *** The followings exists for backward compatibility only. *** The only thing which they work is that requires current *** library files ( tk/*.rb ). ********************************************************************* tkafter.rb handles Tcl after tkbgerror.rb Tk error module tkcanvas.rb Tk canvas interface tkclass.rb provides generic names for Tk classes tkconsole.rb console command support tkdialog.rb Tk dialog class tkentry.rb Tk entry class tkfont.rb Tk font support tkmacpkg.rb Mac resource support tkmenubar.rb TK menubar utility tkmngfocus.rb focus manager tkpalette.rb pallete support tkscrollbox.rb scroll box, also example of compound widget tktext.rb text classes tkvirtevent.rb virtual event support tkwinpkg.rb Win DDE and registry support