summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tk.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* * ext/tk/lib/tcltklib : bug fixnagai2004-07-011-248/+1030
| | | | | | | * ext/tk/lib/tk : bug fix and add Tcl/Tk extension support libraries git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: bug fix (TkWindow#grab)nagai2004-06-151-1/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/extconf.rb: [EXPERIMENTAL] MacOS X (darwin) supportnagai2004-06-121-29/+60
| | | | | | | | | | | | | | * ext/tcltklib/tcltklib.c: fix thread trouble on callback proc, and eliminate warning about instance variable access * ext/tk/lib/tk/menubar.rb: improve supported menu_spec * ext/tk/lib/tk/menuspec.rb: [add] menu_spec support library * ext/tk/lib/tk/root.rb: add menu_spec support * ext/tk/lib/tk/text.rb: bug fix * ext/tk/lib/tk/toplevel.rb: add menu_spec support * ext/tk/sample/menubar?.rb: [add] sample of menu_spec usage git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: add Tk.appsend_deny and improve Tk.rb_appsendnagai2004-05-211-16/+65
| | | | | | | | | * ext/tk/lib/tk.rb, ext/tk/lib/tk/*.rb : replace obj.send() -> obj.__send__() * ext/tk/lib/remote-tk.rb: add a new library which create an object to control a Tk interpreter on the other process git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: change permition of TkObject#tk_send from private to publicnagai2004-05-191-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * renewal Ruby/Tknagai2004-05-011-4340/+1132
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: en-bugged at last commit (Feb 11 23:24:22 2004)nagai2004-02-131-16/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb (TkComm::tk_split_list): suppress a warning.nobu2004-02-121-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: properly treat a Tcl/Tk's string with escapingnagai2004-02-111-25/+108
| | | | | | | special characters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: use $0 as the default application class name.nagai2004-01-131-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: use epath for embedded windows of TkPanedWindow.nagai2004-01-071-7/+10
| | | | | | | | * ext/tk/lib/tktext.rb: use epath for embedded windows. * ext/tk/lib/tkcanvas.rb: use epath for window items. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: add new methods (TkScrollbar#assign, assign_list)nagai2003-12-201-0/+53
| | | | | | | * ext/tk/sample/tkmultilistframe.rb: use TkScrollbar#assign method git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * condition bug of if statement on {pack,grid}_propagate methodsnagai2003-12-161-6/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * overrided instance methods, which are private methods on the supernagai2003-12-091-0/+26
| | | | | | | class, are changed to 'private' git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 'format'==>'Kernel.format' (avoid override trouble)nagai2003-12-031-35/+36
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: bug fix [ruby-talk:86746]nagai2003-11-301-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: add Tk.grab_release and fix bug of TkCompositenagai2003-11-221-2/+5
| | | | | | | | | * ext/tk/lib/tkafter.rb: bug fix * ext/tk/sample/tkcombobox.rb: new sample script * ext/tcltklib/tcltklib.c: add native thread check git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkentry.rb: fix the encoding trouble of percentnagai2003-11-211-4/+4
| | | | | | | | substitutions on validatecommand option of TkEntry widget * ext/tk/lib/tk.rb: fix bug on {pack|grid}_propagate() method git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: fix (en-bugged at 2003/11/07)nagai2003-11-141-1/+0
| | | | | | | * ext/tk/lib/tkdialog.rb: TkDialog.new accepts the parent widget [ruby-talk:85066] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb,multi-tk.rb: stop freezing some classesnagai2003-11-121-8/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: raise an exception when creating TkWindownagai2003-11-111-1/+2
| | | | | | | object, because TkWindow class is an abstract class. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in, eval.c, signal.c: : add '--with-pthread-ext' optionnagai2003-11-051-0/+7
| | | | | | | | | | | to fix the pthread trouble on 'tcltklib' ext/tcltklib/README.1st: add the description of '--with-pthread-ext' ext/tk/lib/tktext.rb : add TkText#text_copy, text_cut, text_paste to support Tcl/Tk8.4's tk_textCopy, tk_textCut, tk_textPaste ext/tk/lib/tk.rb : add TkMenu#set_focus support Tcl/Tk's tk_menuSetFocus git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add TkRoot.destroynagai2003-10-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bug fixnagai2003-10-211-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add some documentsnagai2003-10-171-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* consistent parentheses in assignment RHS.matz2003-10-161-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* (bug fix) instance variable @frame was used without initializing onnagai2003-10-161-1/+2
| | | | | | | TkComposite module git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* If $DEBUG == true and some exception is caused in a callbacknagai2003-10-161-1/+17
| | | | | | | | operation, Ruby/Tk shows a (verbose) backtrace information on the callback process. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add Tk::EncodedString and Tk::UTF8_String class to support charactersnagai2003-10-161-2/+56
| | | | | | | | using the \uXXXX escape to the UNICODE string. sample/{demos-en,demos-jp}/unicodeout.rb are samples of Tk::UTF8_String. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/tk/lib/tk.rb:nagai2003-10-141-2/+7
| | | | | | | * fixed trouble on auto-load Tcl commands (enbug on the last commit). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/tcltklib/tcltklib.c:nagai2003-10-141-29/+138
| | | | | | | | | | | | | | | | | | | | | | | * replace Tcl/Tk's vwait and tkwait to switch on threads smoothly and avoid seg-fault. * add TclTkIp._thread_vwait and _thread_tkwait for waiting on a thread. ( Because Tcl/Tk's vwait and tkwait command wait on a eventloop. ) ext/tk/lib/multi-tk.rb: * support TclTkIp._thread_vwait and _thread_tkwait ext/tk/lib/tk.rb: * now, TkVariable#wait has 2 arguments. If 1st argument is true, waits on a thread. If false, waits on an eventloop. If 2nd argument is true, checks existence of rootwidgets. If false, doesn't. Default is wait(true, false). * add TkVariable#tkwait(arg) which is equal to TkVariable#wait(arg, true) * wait_visibility and wait_destroy have an argument for waiting on a thread or an eventloop. * improve of accessing Tcl/Tk's special variables ext/tk/lib/tkafter.rb: * support 'wait on a thread' and 'wait on an eventloop' git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tcltklib.c (lib_mainloop_core): fixed signal-trap bugnagai2003-09-071-13/+75
| | | | | | | | * multi-tk.rb, tk.rb, tkafter.rb, tkcanvas.rb, tkfont.rb, tktext.rb, tkvirtevent.rb : Ruby/Tk works at $SAFE == 4 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (ip_invoke): fixed bug on passing a exceptionnagai2003-09-021-107/+217
| | | | | | | | * ext/tk/lib/{tk.rb, tkcanvas.rb, tkfont.rb, tktext.rb} : bug fix and improvement of font control git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (aref_args): forgot to call NEW_SPLAT(). reported bymatz2003-09-011-1/+1
| | | | | | | | | | Dave Butcher. * eval.c (Init_Thread): protect thgroup_default. suggested by Guy Decoux in [ruby-talk:80623] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/ChangeLog-1.8.0: add changes of Ruby/Tknagai2003-08-291-49/+259
| | | | | | | | | | | | | | | | | | | | | | * ext/tcltklib/tcltklib.c : some methods have no effect if on slave-IP * ext/tcltklib/tcltklib.c : can create a interpreter without Tk * ext/tcltklib/tcltklib.c : bug fix on handling exceptions * ext/tcltklib/MANUAL.euc : modify * ext/tk/lib/tk.rb : freeze some core modules * ext/tk/lib/multi-tk.rb : more secure * ext/tk/lib/tk.rb: TkVariable.new(array) --> treat the array as the Tk's list * ext/tk/lib/tk.rb: improve accessibility of TkVariable object * ext/tk/lib/tk.rb, ext/tk/lib/tkfont.rb, ext/tk/lib/tkcanvas.rb, ext/tk/lib/tktext.rb : fix bug of font handling * ext/tk/lib/tkfont.rb TkFont.new() accepts compound fonts * process.c: bug fix * process.c: add rb_secure(2) to methods of Process::{UID,GID,Sys} * process.c: deny handling IDs during evaluating the block given to the Process::{UID,GID}.switch method git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * typo bugnagai2003-08-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sorry. fixed commit missnagai2003-08-031-12/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * add or modify some widget demo scriptsnagai2003-08-021-2/+8
| | | | | | | * (bug fix) TkGrid failed to treat RELATIVE PLACEMENT git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_to_s): get rid of buffer overflow.matz2003-08-021-0/+12
| | | | | | | | * io.c (appendline): clearerr(3) before raising exception, since exception may be captured by rescue. [ruby-talk:77794] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * (bug fix) forgot to entry a widget class name of 'labelframe' widgetnagai2003-08-021-0/+4
| | | | | | | * add demo-scripts to the JP/EN widget demos git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * (bug fix) TkEntry#deletenagai2003-08-021-6/+12
| | | | | | | | | | * (bug fix) some widget demos * support <TkVariable object> == <Symbol> ( "coerce TkVariable" add to the TODO list :-) ) * freeze some object for security reason git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fix : forget to eval given block to TkRoot.new methodnagai2003-08-011-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fix : wrong resource file format (resource.{en,jp})nagai2003-07-311-3/+63
| | | | | | | | * add Tk::Encoding.{encoding_convertfrom, encoding_convertto} * add TkOptionDB.read_with_encoding to read non-utf8 resource file git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * (IMPORTANT BUG FIX) scan of event keywords doesn't work on recentnagai2003-07-311-25/+30
| | | | | | | | | | | versions of Tck/Tk * (bug fix) initialize error of instance variable on TkComposite * (bug fix) initialize error on encoding-system on MultiTkIp * (bug fix) trouble on destroying widgets * (new) add JP and EN version of Ruby/Tk widget demos git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * wrap the command-proc of TkScale : pass the numeric object to the procnagai2003-07-311-15/+72
| | | | | | | | * better support for widgets created on Tk interpreter (without Ruby) * a little more stable on Multiple Tk interpreters running git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fixnagai2003-07-301-0/+5
| | | | | | | | * fix lack of methods for TkEntry * fix reference of uninitialized variables git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * additional check of Tk interpreters' status for a little more safetynagai2003-07-301-7/+24
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fixnagai2003-07-291-1/+1
| | | | | | | | * change mainloop_abort_on_no_widget_cmd => mainloop_abort_on_exception ( to avoid thread timing trouble on accessing destroyed widgets ) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fix ( tested with Ruby/Tk widget demo )nagai2003-07-291-6/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* multi-tk.rb : (new) library to support multiple Tk interpreters (high level)nagai2003-07-271-2/+5
| | | | | | | | | | | tcltklib.c : add some methods to support multiple interpreters (low level) MANUAL.euc : modify descriptions tcltklib/sample/safeTk.rb : (new) sample : how to use safeTk interpreter tk/sample/safe-tk.rb : (new) sample : how to use multi-tk.rb tk.rb, tkafter.rb : bug fix and add feature to supprt multi-tk git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e