Module TclTkLib
In: tk/tcltklib.c
tk/lib/tk.rb

—- initialization —-

Methods

Classes and Modules

Module TclTkLib::EventFlag
Module TclTkLib::VarAccessFlag

Constants

COMPILE_INFO = tcltklib_compile_info()  
RELEASE_DATE = rb_obj_freeze(rb_str_new2(tcltklib_release_date))
FINALIZE_PROC_NAME = rb_str_new2(finalize_hook_name)

External Aliases

encoding -> _encoding
encoding= -> _encoding=

Public Class methods

[Source]

# File tk/lib/tk.rb, line 2340
      def encoding
        TkCore::INTERP.encoding
      end

[Source]

# File tk/lib/tk.rb, line 2337
      def encoding=(name)
        TkCore::INTERP.encoding = name
      end

execute Tk_MainLoop

[Source]

/* execute Tk_MainLoop */
static VALUE
lib_mainloop(argc, argv, self)
    int   argc;
    VALUE *argv;
    VALUE self;
{
    VALUE check_rootwidget;

    if (rb_scan_args(argc, argv, "01", &check_rootwidget) == 0) {
        check_rootwidget = Qtrue;
    } else if (RTEST(check_rootwidget)) {
        check_rootwidget = Qtrue;
    } else {
        check_rootwidget = Qfalse;
    }

    return lib_eventloop_launcher(RTEST(check_rootwidget), 0, 
                                  (int*)NULL, (Tcl_Interp*)NULL);
}

[Validate]

ruby-doc.org is hosted and run by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. Ruby-doc.org was created in 2002 to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.