Module: TkComm (Ruby 2.2.4)
Description: Module : TkComm - Ruby 2.2.4

- Home
- Core 2.2.4
- Std-lib 2.2.4
- Downloads

Support for the Ruby 2.2 series has ended. See here for reference.

### Home Classes Methods

### In Files

- tk/lib/tk.rb
- tk/lib/tk/composite.rb
- tk/lib/tk/font.rb
- tk/lib/tk/fontchooser.rb
- tk/lib/tk/itemconfig.rb
- tk/lib/tk/namespace.rb
- tk/lib/tk/panedwindow.rb
- tk/lib/tk/place.rb
- tk/lib/tk/text.rb
- tk/lib/tk/wm.rb
- tk/lib/tk/xim.rb
- tk/lib/tkextlib/blt.rb
- tk/lib/tkextlib/blt/component.rb
- tk/lib/tkextlib/blt/tile.rb
- tk/lib/tkextlib/blt/treeview.rb
- tk/lib/tkextlib/blt/watch.rb
- tk/lib/tkextlib/bwidget.rb
- tk/lib/tkextlib/bwidget/dialog.rb
- tk/lib/tkextlib/bwidget/messagedlg.rb
- tk/lib/tkextlib/iwidgets.rb
- tk/lib/tkextlib/iwidgets/scrolledtext.rb
- tk/lib/tkextlib/tcllib.rb
- tk/lib/tkextlib/tcllib/widget.rb
- tk/lib/tkextlib/tile.rb
- tk/lib/tkextlib/tile/tpaned.rb
- tk/lib/tkextlib/tile/treeview.rb
- tk/lib/tkextlib/tkDND/tkdnd.rb
- tk/lib/tkextlib/vu.rb

### Methods

- ::_at
- ::_callback_entry?
- ::_callback_entry_class?
- ::_curr_cmd_id
- ::_fromUTF8
- ::_genobj_for_tkwidget
- ::_next_cmd_id
- ::_toUTF8
- ::array2tk_list
- ::image_obj
- ::install_cmd
- ::list
- ::procedure
- ::simplelist
- ::slice_ary
- ::tk_tcl2ruby
- ::uninstall_cmd
- ::window
- #bind
- #bind_all
- #bind_append
- #bind_append_all
- #bind_remove
- #bind_remove_all
- #bindinfo
- #bindinfo_all
- #install_cmd
- #mutex
- #subst
- #uninstall_cmd

### Included Modules

- TkUtil
- TkEvent

### Class/Module Index

Quicksearch

- Arc
- Bitmap
- BitmapImage
- Checkbutton
- CloneMenu
- Font
- Grid
- INTERP
- Labelframe
- Line
- MenuButton
- MultiTkIp
- MultiTkIp::Command_Queue
- MultiTkIp::ThreadGroup
- MultiTkIp_OK
- MultiTkIp_PseudoToplevel_Evaluable
- Object
- Object::TkNamedVirtualEvent
- Object::TkSystemMenu
- Object::Ttk
- OptionMenuButton
- Oval
- Pack
- Panedwindow
- PhotoImage
- Place
- Polygon
- Radiobutton
- Rectangle
- RemoteTkIp
- Selection
- Spinbox
- TclTk
- TclTkCallback
- TclTkCommand
- TclTkImage
- TclTkInterpreter
- TclTkIp
- TclTkLib
- TclTkLib::EventFlag
- TclTkLib::RELEASE_TYPE
- TclTkLib::VarAccessFlag
- TclTkLibCommand
- TclTkObject
- TclTkVariable
- TclTkWidget
- TextItem
- Tk
- Tk::BLT
- Tk::BLT::Barchart
- Tk::BLT::Bitmap
- Tk::BLT::Busy
- Tk::BLT::Busy::Shield
- Tk::BLT::Container
- Tk::BLT::CutBuffer
- Tk::BLT::DnD
- Tk::BLT::DragDrop
- Tk::BLT::DragDrop::DnD_Handle
- Tk::BLT::DragDrop::PackageCommand
- Tk::BLT::DragDrop::PackageCommand::ValidateArgs
- Tk::BLT::DragDrop::SiteCommand
- Tk::BLT::DragDrop::SiteCommand::ValidateArgs
- Tk::BLT::DragDrop::Token
- Tk::BLT::EPS
- Tk::BLT::Graph
- Tk::BLT::GraphCommand
- Tk::BLT::Hiertable
- Tk::BLT::Htext
- Tk::BLT::PlotComponent
- Tk::BLT::PlotComponent::Axis
- Tk::BLT::PlotComponent::Bar
- Tk::BLT::PlotComponent::BitmapMarker
- Tk::BLT::PlotComponent::Crosshairs
- Tk::BLT::PlotComponent::Element
- Tk::BLT::PlotComponent::GridLine
- Tk::BLT::PlotComponent::ImageMarker
- Tk::BLT::PlotComponent::Legend
- Tk::BLT::PlotComponent::Line
- Tk::BLT::PlotComponent::LineMarker
- Tk::BLT::PlotComponent::Marker
- Tk::BLT::PlotComponent::OptKeys
- Tk::BLT::PlotComponent::Pen
- Tk::BLT::PlotComponent::PolygonMarker
- Tk::BLT::PlotComponent::Postscript
- Tk::BLT::PlotComponent::TextMarker
- Tk::BLT::PlotComponent::WindowMarker
- Tk::BLT::Printer
- Tk::BLT::Spline
- Tk::BLT::Stripchart
- Tk::BLT::Table
- Tk::BLT::Table::TableContainer
- Tk::BLT::Tabnotebook
- Tk::BLT::Tabnotebook::Tab
- Tk::BLT::Tabset
- Tk::BLT::Tabset::NamedTab
- Tk::BLT::Tabset::Tab
- Tk::BLT::Ted
- Tk::BLT::Tile
- Tk::BLT::Tile::Button
- Tk::BLT::Tile::CheckButton
- Tk::BLT::Tile::Checkbutton
- Tk::BLT::Tile::Frame
- Tk::BLT::Tile::Label
- Tk::BLT::Tile::RadioButton
- Tk::BLT::Tile::Radiobutton
- Tk::BLT::Tile::Scrollbar
- Tk::BLT::Tile::Toplevel
- Tk::BLT::Tree
- Tk::BLT::Tree::Node
- Tk::BLT::Tree::Notify
- Tk::BLT::Tree::Tag
- Tk::BLT::Tree::Trace
- Tk::BLT::Treeview
- Tk::BLT::Treeview::ConfigMethod
- Tk::BLT::Treeview::FindExecFlagValue
- Tk::BLT::Treeview::FindExecFlagValue::ValidateArgs
- Tk::BLT::Treeview::Node
- Tk::BLT::Treeview::OpenCloseCommand
- Tk::BLT::Treeview::OpenCloseCommand::ValidateArgs
- Tk::BLT::Treeview::Tag
- Tk::BLT::Treeview::TagOrID_Methods
- Tk::BLT::Vector
- Tk::BLT::VectorAccess
- Tk::BLT::Watch
- Tk::BLT::WinOp
- Tk::BLT::Winop
- Tk::BWidget
- Tk::BWidget::ArrowButton
- Tk::BWidget::Bitmap
- Tk::BWidget::Button
- Tk::BWidget::ButtonBox
- Tk::BWidget::ComboBox
- Tk::BWidget::Dialog
- Tk::BWidget::DragSite
- Tk::BWidget::DropSite
- Tk::BWidget::DynamicHelp
- Tk::BWidget::Entry
- Tk::BWidget::Label
- Tk::BWidget::LabelEntry
- Tk::BWidget::LabelFrame
- Tk::BWidget::ListBox
- Tk::BWidget::ListBox::Event_for_Items
- Tk::BWidget::ListBox::Item
- Tk::BWidget::MainFrame
- Tk::BWidget::MessageDlg
- Tk::BWidget::NoteBook
- Tk::BWidget::NoteBook::Event_for_Tabs
- Tk::BWidget::PagesManager
- Tk::BWidget::PanedWindow
- Tk::BWidget::PanelFrame
- Tk::BWidget::PasswdDlg
- Tk::BWidget::ProgressBar
- Tk::BWidget::ProgressDlg
- Tk::BWidget::ScrollView
- Tk::BWidget::ScrollableFrame
- Tk::BWidget::ScrolledWindow
- Tk::BWidget::SelectColor
- Tk::BWidget::SelectColor::Dialog
- Tk::BWidget::SelectColor::MenuButton
- Tk::BWidget::SelectColor::Menubutton
- Tk::BWidget::SelectFont
- Tk::BWidget::SelectFont::Dialog
- Tk::BWidget::SelectFont::Toolbar
- Tk::BWidget::Separator
- Tk::BWidget::SpinBox
- Tk::BWidget::StatusBar
- Tk::BWidget::TitleFrame
- Tk::BWidget::Tree
- Tk::BWidget::Tree::Event_for_Items
- Tk::BWidget::Tree::Node
- Tk::BWidget::Widget
- Tk::BinaryString
- Tk::Busy
- Tk::Button
- Tk::Canvas
- Tk::CheckButton
- Tk::Clock
- Tk::EncodedString
- Tk::Encoding
- Tk::Entry
- Tk::Frame
- Tk::HTML_Widget
- Tk::HTML_Widget::ClippingWindow
- Tk::ICONS
- Tk::Img
- Tk::Img::BMP
- Tk::Img::DTED
- Tk::Img::GIF
- Tk::Img::ICO
- Tk::Img::JPEG
- Tk::Img::PCX
- Tk::Img::PIXMAP
- Tk::Img::PNG
- Tk::Img::PPM
- Tk::Img::PS
- Tk::Img::Raw
- Tk::Img::SGI
- Tk::Img::SUN
- Tk::Img::TGA
- Tk::Img::TIFF
- Tk::Img::WINDOW
- Tk::Img::XBM
- Tk::Img::XPM
- Tk::Itcl
- Tk::Itcl::ItclObject
- Tk::ItemValidateConfigure
- Tk::Itk
- Tk::Itk::Archetype
- Tk::Itk::Component
- Tk::Itk::Toplevel
- Tk::Itk::Widget
- Tk::Iwidgets
- Tk::Iwidgets::Buttonbox
- Tk::Iwidgets::Calendar
- Tk::Iwidgets::Calendar::CalendarCommand
- Tk::Iwidgets::Calendar::CalendarCommand::ValidateArgs
- Tk::Iwidgets::Canvasprintbox
- Tk::Iwidgets::Canvasprintdialog
- Tk::Iwidgets::Checkbox
- Tk::Iwidgets::Combobox
- Tk::Iwidgets::Dateentry
- Tk::Iwidgets::Datefield
- Tk::Iwidgets::Dialog
- Tk::Iwidgets::Dialogshell
- Tk::Iwidgets::Disjointlistbox
- Tk::Iwidgets::Entryfield
- Tk::Iwidgets::Entryfield::EntryfieldValidate
- Tk::Iwidgets::Entryfield::EntryfieldValidate::ValidateArgs
- Tk::Iwidgets::Extbutton
- Tk::Iwidgets::Extfileselectionbox
- Tk::Iwidgets::Extfileselectiondialog
- Tk::Iwidgets::Feedback
- Tk::Iwidgets::Fileselectionbox
- Tk::Iwidgets::Fileselectiondialog
- Tk::Iwidgets::Finddialog
- Tk::Iwidgets::Hierarchy
- Tk::Iwidgets::Hierarchy::IconCommand
- Tk::Iwidgets::Hierarchy::IconCommand::ValidateArgs
- Tk::Iwidgets::Hierarchy::IndicatorCommand
- Tk::Iwidgets::Hierarchy::IndicatorCommand::ValidateArgs
- Tk::Iwidgets::Hierarchy::QueryCommand
- Tk::Iwidgets::Hierarchy::QueryCommand::ValidateArgs
- Tk::Iwidgets::Hyperhelp
- Tk::Iwidgets::Labeledframe
- Tk::Iwidgets::Labeledwidget
- Tk::Iwidgets::Mainwindow
- Tk::Iwidgets::Menubar
- Tk::Iwidgets::Messagebox
- Tk::Iwidgets::Messagedialog
- Tk::Iwidgets::Notebook
- Tk::Iwidgets::Optionmenu
- Tk::Iwidgets::Panedwindow
- Tk::Iwidgets::Promptdialog
- Tk::Iwidgets::Pushbutton
- Tk::Iwidgets::Radiobox
- Tk::Iwidgets::Scopedobject
- Tk::Iwidgets::Scrolledcanvas
- Tk::Iwidgets::Scrolledframe
- Tk::Iwidgets::Scrolledhtml
- Tk::Iwidgets::Scrolledlistbox
- Tk::Iwidgets::Scrolledtext
- Tk::Iwidgets::Scrolledwidget
- Tk::Iwidgets::Selectionbox
- Tk::Iwidgets::Selectiondialog
- Tk::Iwidgets::Shell
- Tk::Iwidgets::Spindate
- Tk::Iwidgets::Spinint
- Tk::Iwidgets::Spinner
- Tk::Iwidgets::Spinner::EntryfieldValidate
- Tk::Iwidgets::Spinner::EntryfieldValidate::ValidateArgs
- Tk::Iwidgets::Spintime
- Tk::Iwidgets::Tabnotebook
- Tk::Iwidgets::Tabset
- Tk::Iwidgets::Timeentry
- Tk::Iwidgets::Timefield
- Tk::Iwidgets::Toolbar
- Tk::Iwidgets::Watch
- Tk::Label
- Tk::LabelFrame
- Tk::Listbox
- Tk::Mac
- Tk::Mac::IconBitmap
- Tk::MacResource
- Tk::Menu
- Tk::Menu::TkInternalFunction
- Tk::MenuClone
- Tk::Menubutton
- Tk::Message
- Tk::OptionMenubutton
- Tk::OptionMenubutton::OptionMenu
- Tk::OptionObj
- Tk::PanedWindow
- Tk::RadioButton
- Tk::Root
- Tk::Scale
- Tk::Scrollable
- Tk::Scrollbar
- Tk::Spinbox
- Tk::Spinbox::SpinCommand
- Tk::Spinbox::SpinCommand::ValidateArgs
- Tk::SysMenu_Apple
- Tk::SysMenu_Help
- Tk::SysMenu_System
- Tk::SystemMenu
- Tk::TOPLEVEL_ALIASES
- Tk::TclX
- Tk::TclX::XPG3_MsgCat
- Tk::Tcllib
- Tk::Tcllib::Autoscroll
- Tk::Tcllib::CText
- Tk::Tcllib::ChatWidget
- Tk::Tcllib::Crosshair
- Tk::Tcllib::Cursor
- Tk::Tcllib::DateField
- Tk::Tcllib::Datefield
- Tk::Tcllib::Diagrams
- Tk::Tcllib::GetString_Dialog
- Tk::Tcllib::History
- Tk::Tcllib::ICO
- Tk::Tcllib::IP6_Entry
- Tk::Tcllib::IPEntry
- Tk::Tcllib::IPEntry6
- Tk::Tcllib::IP_Entry
- Tk::Tcllib::IP_Entry6
- Tk::Tcllib::KHIM
- Tk::Tcllib::KHIM::Help
- Tk::Tcllib::Ntext
- Tk::Tcllib::Plotchart
- Tk::Tcllib::Plotchart::Barchart
- Tk::Tcllib::Plotchart::Barchart3D
- Tk::Tcllib::Plotchart::Boxplot
- Tk::Tcllib::Plotchart::ChartMethod
- Tk::Tcllib::Plotchart::Ganttchart
- Tk::Tcllib::Plotchart::Histogram
- Tk::Tcllib::Plotchart::HorizontalBarchart
- Tk::Tcllib::Plotchart::IsometricPlot
- Tk::Tcllib::Plotchart::Isometricplot
- Tk::Tcllib::Plotchart::Piechart
- Tk::Tcllib::Plotchart::Plot3D
- Tk::Tcllib::Plotchart::PlotSeries
- Tk::Tcllib::Plotchart::PolarPlot
- Tk::Tcllib::Plotchart::Polarplot
- Tk::Tcllib::Plotchart::Radialchart
- Tk::Tcllib::Plotchart::RibbonChart3D
- Tk::Tcllib::Plotchart::RightAxis
- Tk::Tcllib::Plotchart::Stripchart
- Tk::Tcllib::Plotchart::TXPlot
- Tk::Tcllib::Plotchart::Timechart
- Tk::Tcllib::Plotchart::XLogYPlot
- Tk::Tcllib::Plotchart::XYPlot
- Tk::Tcllib::Style
- Tk::Tcllib::Swaplist_Dialog
- Tk::Tcllib::TableList
- Tk::Tcllib::TableList_Tile
- Tk::Tcllib::Tablelist
- Tk::Tcllib::TablelistItemConfig
- Tk::Tcllib::Tablelist_Tile
- Tk::Tcllib::Tkpiechart
- Tk::Tcllib::Tkpiechart::BoxLabeler
- Tk::Tcllib::Tkpiechart::ConfigMethod
- Tk::Tcllib::Tkpiechart::Label
- Tk::Tcllib::Tkpiechart::PeripheralLabeler
- Tk::Tcllib::Tkpiechart::Pie
- Tk::Tcllib::Tkpiechart::PieChartObj
- Tk::Tcllib::Tkpiechart::Slice
- Tk::Tcllib::Tooltip
- Tk::Tcllib::Validator
- Tk::Tcllib::Widget
- Tk::Tcllib::Widget::Calendar
- Tk::Tcllib::Widget::Canvas_Sqmap
- Tk::Tcllib::Widget::Canvas_Zoom
- Tk::Tcllib::Widget::DateEntry
- Tk::Tcllib::Widget::Dateentry
- Tk::Tcllib::Widget::Dialog
- Tk::Tcllib::Widget::MenuEntry
- Tk::Tcllib::Widget::Menuentry
- Tk::Tcllib::Widget::PanelFrame
- Tk::Tcllib::Widget::Panelframe
- Tk::Tcllib::Widget::Ruler
- Tk::Tcllib::Widget::ScreenRuler
- Tk::Tcllib::Widget::Screenruler
- Tk::Tcllib::Widget::ScrolledWindow
- Tk::Tcllib::Widget::Scrolledwindow
- Tk::Tcllib::Widget::Statusbar
- Tk::Tcllib::Widget::SuperFrame
- Tk::Tcllib::Widget::Toolbar
- Tk::Tcllib::Widget::ToolbarItem
- Tk::Tcllib::Widget::ToolbarItemConfig
- Tk::Text
- Tk::Text::IndexModMethods
- Tk::Text::IndexString
- Tk::Text::Peer
- Tk::Tile
- Tk::Tile::Button
- Tk::Tile::CheckButton
- Tk::Tile::Checkbutton
- Tk::Tile::Combobox
- Tk::Tile::Dialog
- Tk::Tile::Entry
- Tk::Tile::Font
- Tk::Tile::Frame
- Tk::Tile::KeyNav
- Tk::Tile::Label
- Tk::Tile::LabelFrame
- Tk::Tile::Labelframe
- Tk::Tile::MenuButton
- Tk::Tile::Menubutton
- Tk::Tile::Notebook
- Tk::Tile::ParseStyleLayout
- Tk::Tile::Progress
- Tk::Tile::Progressbar
- Tk::Tile::RadioButton
- Tk::Tile::Radiobutton
- Tk::Tile::Scale
- Tk::Tile::Scrollbar
- Tk::Tile::Separator
- Tk::Tile::SizeGrip
- Tk::Tile::Sizegrip
- Tk::Tile::Spinbox
- Tk::Tile::Square
- Tk::Tile::Style
- Tk::Tile::TButton
- Tk::Tile::TCheckButton
- Tk::Tile::TCheckbutton
- Tk::Tile::TCombobox
- Tk::Tile::TEntry
- Tk::Tile::TFrame
- Tk::Tile::TLabel
- Tk::Tile::TLabelFrame
- Tk::Tile::TLabelframe
- Tk::Tile::TMenuButton
- Tk::Tile::TMenubutton
- Tk::Tile::TNotebook
- Tk::Tile::TPaned
- Tk::Tile::TProgress
- Tk::Tile::TProgressbar
- Tk::Tile::TRadioButton
- Tk::Tile::TRadiobutton
- Tk::Tile::TScale
- Tk::Tile::TScrollbar
- Tk::Tile::TSeparator
- Tk::Tile::TSpinbox
- Tk::Tile::TSpinbox::SpinCommand
- Tk::Tile::TSpinbox::SpinCommand::ValidateArgs
- Tk::Tile::TSquare
- Tk::Tile::TileWidget
- Tk::Tile::Treeview
- Tk::Tile::Treeview::Item
- Tk::Tile::Treeview::Root
- Tk::Tile::Treeview::Tag
- Tk::Tile::TreeviewConfig
- Tk::Tile::XScrollbar
- Tk::Tile::YScrollbar
- Tk::TkDND
- Tk::TkDND::DND
- Tk::TkDND::DND_Subst
- Tk::TkDND::Shape
- Tk::TkSystemMenu
- Tk::TkTable
- Tk::TkTable::BrowseCommand
- Tk::TkTable::BrowseCommand::ValidateArgs
- Tk::TkTable::CellCommand
- Tk::TkTable::CellCommand::ValidateArgs
- Tk::TkTable::CellTag
- Tk::TkTable::ConfigMethod
- Tk::TkTable::NamedCellTag
- Tk::TkTable::SelectionCommand
- Tk::TkTable::SelectionCommand::ValidateArgs
- Tk::TkTable::ValidateCommand
- Tk::TkTable::ValidateCommand::ValidateArgs
- Tk::TkTrans
- Tk::Toplevel
- Tk::TreeCtrl
- Tk::TreeCtrl::BindCallback
- Tk::TreeCtrl::BitmapElement
- Tk::TreeCtrl::BorderElement
- Tk::TreeCtrl::Column
- Tk::TreeCtrl::ConfigMethod
- Tk::TreeCtrl::Element
- Tk::TreeCtrl::ImageElement
- Tk::TreeCtrl::Item
- Tk::TreeCtrl::NotifyEvent
- Tk::TreeCtrl::RectangleElement
- Tk::TreeCtrl::Style
- Tk::TreeCtrl_Widget
- Tk::Trofs
- Tk::Ttk
- Tk::UTF8_String
- Tk::ValidateConfigure
- Tk::Vu
- Tk::Vu::Bargraph
- Tk::Vu::ChartsConfig
- Tk::Vu::Dial
- Tk::Vu::NamedPieSlice
- Tk::Vu::Pie
- Tk::Vu::PieSlice
- Tk::Vu::PieSliceConfigMethod
- Tk::Vu::TkcBarchart
- Tk::Vu::TkcSticker
- Tk::Vu::TkcStripchart
- Tk::WinDDE
- Tk::WinRegistry
- Tk::Winico
- Tk::Winico::Winico_callback
- Tk::Winico::Winico_callback::ValidateArgs
- Tk::Wm
- Tk::Wm_for_General
- Tk::XScrollable
- Tk::XScrollbar
- Tk::X_Scrollable
- Tk::YScrollable
- Tk::YScrollbar
- Tk::Y_Scrollable
- TkAfter
- TkBgError
- TkBindCore
- TkBindTag
- TkBindTagAll
- TkBitmapImage
- TkCallbackBreak
- TkCallbackContinue
- TkCallbackEntry
- TkCallbackRedo
- TkCallbackRetry
- TkCallbackReturn
- TkCallbackThrow
- TkCanvasItemConfig
- TkClipboard
- TkComm
- TkComposite
- TkConfigMethod
- TkConsole
- TkCore
- TkCore::Tk_OBJECT_TABLE
- TkDatabaseClass
- TkDialog
- TkDialog2
- TkDialogObj
- TkEvent
- TkEvent::Event
- TkEvent::Event::Grp
- TkEvent::Event::StateMask
- TkEvent::Event::TypeNum
- TkFont
- TkFont::Chooser
- TkFont::CoreMethods
- TkFont::DescendantFont
- TkFont::Fontchooser
- TkGrid
- TkImage
- TkItemConfigMethod
- TkItemConfigOptkeys
- TkItemFontOptkeys
- TkKernel
- TkKinput
- TkListItemConfig
- TkLocalJumpError
- TkManageFocus
- TkMenuEntryConfig
- TkMenuSpec
- TkMenubar
- TkMsgCat
- TkMsgCatalog
- TkNamedFont
- TkNamespace
- TkNamespace::Ensemble
- TkNamespace::NsCode
- TkNamespace::ScopeArgs
- TkObject
- TkOption
- TkOptionDB
- TkOptionDB::Priority
- TkPack
- TkPackage
- TkPalette
- TkPhotoImage
- TkPixmapImage
- TkPlace
- TkRTTimer
- TkResourceDB
- TkScrollbox
- TkSelection
- TkTextImage
- TkTextMark
- TkTextMarkAnchor
- TkTextMarkCurrent
- TkTextMarkInsert
- TkTextNamedMark
- TkTextNamedTag
- TkTextTag
- TkTextTagConfig
- TkTextTagSel
- TkTextWin
- TkTextWindow
- TkTimer
- TkTreatFont
- TkTreatItemFont
- TkTreatTagFont
- TkUtil
- TkUtil::CallbackSubst
- TkUtil::CallbackSubst::Info
- TkValidateCommand
- TkValidateCommand::ValidateArgs
- TkValidation
- TkValidation::ValidateCmd
- TkValidation::ValidateCmd::Action
- TkVarAccess
- TkVariable
- TkVirtualEvent
- TkVirtualEvent::PreDefVirtEvent
- TkVirtualEvent::TkNamedVirtualEvent
- TkWarning
- TkWarning2
- TkWarningObj
- TkWidget
- TkWindow
- TkWinfo
- TkXIM
- TkcArc
- TkcBitmap
- TkcGroup
- TkcImage
- TkcItem
- TkcLine
- TkcNamedTag
- TkcOval
- TkcPolygon
- TkcRectangle
- TkcTag
- TkcTagAccess
- TkcTagAll
- TkcTagCurrent
- TkcTagString
- TkcText
- TkcWindow
- TktImage
- TktMark
- TktMarkAnchor
- TktMarkCurrent
- TktMarkInsert
- TktNamedMark
- TktNamedTag
- TktTag
- TktTagSel
- TktWindow
- Variable
- VirtualEvent
- WindowItem
- Winfo
- unknown

No matching classes.

# TkComm

define TkComm module (step 1: basic functions)

define TkComm module (step 2: event binding)

### Constants

GET_CONFIGINFO_AS_ARRAY

  GET_CONFIGINFO_AS_ARRAY = false => returns a Hash { opt =>val, … }

      true  => returns an Array [[opt,val], ... ]

  val is a list which includes resource info.

GET_CONFIGINFOwoRES_AS_ARRAY

  for configinfo without resource info; list of [opt, value] pair

      false => returns a Hash { opt=>val, ... }
      true  => returns an Array [[opt,val], ... ]

TkExtlibAutoloadModule
Tk_CMDTBL

  for backward compatibility

Tk_IDs

  Tk_CMDTBL = {} Tk_WINDOWS = {}

Tk_WINDOWS
USE_TCLs_LIST_FUNCTIONS
WidgetClassNames

### Public Class Methods

_at(x,y=nil) click to toggle source

                   # File tk/lib/tk.rb, line 221
    def _at(x,y=nil)
      if y
        "@#{Integer(x)},#{Integer(y)}"
      else
        "@#{Integer(x)}"
      end
    end

_callback_entry?(obj) click to toggle source

                   # File tk/lib/tk.rb, line 689
    def _callback_entry?(obj)
      obj.kind_of?(Proc) || obj.kind_of?(Method) || obj.kind_of?(TkCallbackEntry)
    end

_callback_entry_class?(cls) click to toggle source

                   # File tk/lib/tk.rb, line 683
    def _callback_entry_class?(cls)
      cls <= Proc || cls <= Method || cls <= TkCallbackEntry
    end

_curr_cmd_id() click to toggle source

# begin¶ ↑

    ### --> definition is moved to TkUtil module
    def _conv_args(args, enc_mode, *src_args)
      conv_args = []
      src_args.each{|arg|
        conv_args << _get_eval_string(arg, enc_mode) unless arg == None
        # if arg.kind_of?(Hash)
        # arg.each{|k, v|
        #   args << '-' + k.to_s
        #   args << _get_eval_string(v, enc_mode)
        # }
        # elsif arg != None
        #   args << _get_eval_string(arg, enc_mode)
        # end
      }
      args + conv_args
    end
    private :_conv_args

# end¶ ↑

                   # File tk/lib/tk.rb, line 818
    def _curr_cmd_id
      #id = format("c%.4d", Tk_IDs[0])
      id = "c" + TkCore::INTERP._ip_id_ + TkComm::Tk_IDs[0]
    end

_fromUTF8(str, encoding = nil) click to toggle source

                   # File tk/lib/tk.rb, line 677
    def _fromUTF8(str, encoding = nil)
      TkCore::INTERP._fromUTF8(str, encoding)
    end

_genobj_for_tkwidget(path) click to toggle source

                   # File tk/lib/tk.rb, line 105
      def _genobj_for_tkwidget(path)
        return TkRoot.new if path == '.'

        begin
          #tk_class = TkCore::INTERP._invoke('winfo', 'class', path)
          tk_class = Tk.ip_invoke_without_enc('winfo', 'class', path)
        rescue
          return path
        end

        if ruby_class = WidgetClassNames[tk_class]
          ruby_class_name = ruby_class.name
          # gen_class_name = ruby_class_name + 'GeneratedOnTk'
          gen_class_name = ruby_class_name
          classname_def = ''
        else # ruby_class == nil
          if Tk.const_defined?(tk_class)
            Tk.const_get(tk_class)  # auto_load
            ruby_class = WidgetClassNames[tk_class]
          end

          unless ruby_class
            mods = TkExtlibAutoloadModule.find_all{|m| m.const_defined?(tk_class)}
            mods.each{|mod|
              begin
                mod.const_get(tk_class)  # auto_load
                break if (ruby_class = WidgetClassNames[tk_class])
              rescue LoadError
                # ignore load error
              end
            }
          end

          unless ruby_class
            std_class = 'Tk' << tk_class
            if Object.const_defined?(std_class)
              Object.const_get(std_class)  # auto_load
              ruby_class = WidgetClassNames[tk_class]
            end
          end

          unless ruby_class
            if Tk.const_defined?('TOPLEVEL_ALIASES') &&
                Tk::TOPLEVEL_ALIASES.const_defined?(std_class)
              Tk::TOPLEVEL_ALIASES.const_get(std_class)  # auto_load
              ruby_class = WidgetClassNames[tk_class]
            end
          end

          if ruby_class
            # found
            ruby_class_name = ruby_class.name
            gen_class_name = ruby_class_name
            classname_def = ''
          else
            # unknown
            ruby_class_name = 'TkWindow'
            gen_class_name = 'TkWidget_' + tk_class
            classname_def = "WidgetClassName = '#{tk_class}'.freeze"
          end
        end

    ###################################
    =begin
        if ruby_class = WidgetClassNames[tk_class]
          ruby_class_name = ruby_class.name
          # gen_class_name = ruby_class_name + 'GeneratedOnTk'
          gen_class_name = ruby_class_name
          classname_def = ''
        else
          mod = TkExtlibAutoloadModule.find{|m| m.const_defined?(tk_class)}
          if mod
            ruby_class_name = mod.name + '::' + tk_class
            gen_class_name = ruby_class_name
            classname_def = ''
          elsif Object.const_defined?('Tk' + tk_class)
            ruby_class_name = 'Tk' + tk_class
            # gen_class_name = ruby_class_name + 'GeneratedOnTk'
            gen_class_name = ruby_class_name
            classname_def = ''
          else
            ruby_class_name = 'TkWindow'
            # gen_class_name = ruby_class_name + tk_class + 'GeneratedOnTk'
            gen_class_name = 'TkWidget_' + tk_class
            classname_def = "WidgetClassName = '#{tk_class}'.freeze"
          end
        end
    =end

    =begin
        unless Object.const_defined? gen_class_name
          Object.class_eval "class #{gen_class_name}<#{ruby_class_name}
                               #{classname_def}
                             end"
        end
        Object.class_eval "#{gen_class_name}.new('widgetname'=>'#{path}',
                                                 'without_creating'=>true)"
    =end
        base = Object
        gen_class_name.split('::').each{|klass|
          next if klass == ''
          if base.const_defined?(klass)
            base = base.class_eval klass
          else
            base = base.class_eval "class #{klass}<#{ruby_class_name}
                                      #{classname_def}
                                    end
                                    #{klass}"
          end
        }
        base.class_eval "#{gen_class_name}.new('widgetname'=>'#{path}',
                                               'without_creating'=>true)"
      end

_next_cmd_id() click to toggle source

                   # File tk/lib/tk.rb, line 822
    def _next_cmd_id
      TkComm::Tk_IDs.mutex.synchronize{
        id = _curr_cmd_id
        #Tk_IDs[0] += 1
        TkComm::Tk_IDs[0].succ!
        id
      }
    end

_toUTF8(str, encoding = nil) click to toggle source

                   # File tk/lib/tk.rb, line 674
    def _toUTF8(str, encoding = nil)
      TkCore::INTERP._toUTF8(str, encoding)
    end

array2tk_list(ary, enc=nil) click to toggle source

                   # File tk/lib/tk.rb, line 355
    def array2tk_list(ary, enc=nil)
      return "" if ary.size == 0

      sys_enc = TkCore::INTERP.encoding
      sys_enc = TclTkLib.encoding_system unless sys_enc

      dst_enc = (enc == nil)? sys_enc: enc

      dst = ary.collect{|e|
        if e.kind_of? Array
          s = array2tk_list(e, enc)
        elsif e.kind_of? Hash
          tmp_ary = []
          #e.each{|k,v| tmp_ary << k << v }
          e.each{|k,v| tmp_ary << "-#{_get_eval_string(k)}" << v }
          s = array2tk_list(tmp_ary, enc)
        else
          s = _get_eval_string(e, enc)
        end

        if dst_enc != true && dst_enc != false
          if (s_enc = s.instance_variable_get(:@encoding))
            s_enc = s_enc.to_s
          elsif TkCore::WITH_ENCODING
            s_enc = s.encoding.name
          else
            s_enc = sys_enc
          end
          dst_enc = true if s_enc != dst_enc
        end

        s
      }

      if sys_enc && dst_enc
        dst.map!{|s| _toUTF8(s)}
        ret = TkCore::INTERP._merge_tklist(*dst)
        if TkCore::WITH_ENCODING
          if dst_enc.kind_of?(String)
            ret = _fromUTF8(ret, dst_enc)
            ret.force_encoding(dst_enc)
          else
            ret.force_encoding('utf-8')
          end
        else # without encoding
          if dst_enc.kind_of?(String)
            ret = _fromUTF8(ret, dst_enc)
            ret.instance_variable_set(:@encoding, dst_enc)
          else
            ret.instance_variable_set(:@encoding, 'utf-8')
          end
        end
        ret
      else
        TkCore::INTERP._merge_tklist(*dst)
      end
    end

image_obj(val) click to toggle source

                   # File tk/lib/tk.rb, line 613
    def image_obj(val)
      if val =~ /^i(_\d+_)?\d+$/
        TkImage::Tk_IMGTBL.mutex.synchronize{
          TkImage::Tk_IMGTBL[val]? TkImage::Tk_IMGTBL[val] : val
        }
      else
        val
      end
    end

install_cmd(cmd, local_cmdtbl=nil) click to toggle source

                   # File tk/lib/tk.rb, line 833
    def TkComm.install_cmd(cmd, local_cmdtbl=nil)
      return '' if cmd == ''
      begin
        ns = TkCore::INTERP._invoke_without_enc('namespace', 'current')
        ns = nil if ns == '::' # for backward compatibility
      rescue
        # probably, Tcl7.6
        ns = nil
      end
      id = _next_cmd_id
      #Tk_CMDTBL[id] = cmd
      if cmd.kind_of?(TkCallbackEntry)
        TkCore::INTERP.tk_cmd_tbl[id] = cmd
      else
        TkCore::INTERP.tk_cmd_tbl[id] = TkCore::INTERP.get_cb_entry(cmd)
      end
      @cmdtbl = [] unless defined? @cmdtbl
      TkUtil.untrust(@cmdtbl) unless @cmdtbl.tainted?
      @cmdtbl.push id

      if local_cmdtbl && local_cmdtbl.kind_of?(Array)
        begin
          local_cmdtbl << id
        rescue Exception
          # ignore
        end
      end

      #return Kernel.format("rb_out %s", id);
      if ns
        'rb_out' << TkCore::INTERP._ip_id_ << ' ' << ns << ' ' << id
      else
        'rb_out' << TkCore::INTERP._ip_id_ << ' ' << id
      end
    end

list(val, depth=0, enc=true) click to toggle source

# begin¶ ↑

    ### --> definition is moved to TkUtil module
    def bool(val)
      case val
      when "1", 1, 'yes', 'true'
        true
      else
        false
      end
    end

    def number(val)
      case val
      when /^-?\d+$/
        val.to_i
      when /^-?\d+\.?\d*(e[-+]?\d+)?$/
        val.to_f
      else
        fail(ArgumentError, "invalid value for Number:'#{val}'")
      end
    end
    def string(val)
      if val == "{}"
        ''
      elsif val[0] == ?{ && val[-1] == ?}
        val[1..-2]
      else
        val
      end
    end
    def num_or_str(val)
      begin
        number(val)
      rescue ArgumentError
        string(val)
      end
    end

# end¶ ↑

                   # File tk/lib/tk.rb, line 598
    def list(val, depth=0, enc=true)
      tk_split_list(val, depth, enc, enc)
    end

procedure(val) click to toggle source

                   # File tk/lib/tk.rb, line 622
      def procedure(val)
    =begin
        if val =~ /^rb_out\S* (c(_\d+_)?\d+)/
          #Tk_CMDTBL[$1]
          #TkCore::INTERP.tk_cmd_tbl[$1]
          TkCore::INTERP.tk_cmd_tbl[$1].cmd
    =end
        if val =~ /rb_out\S*(?:\s+(::\S*|[{](::.*)[}]|["](::.*)["]))? (c(_\d+_)?(\d+))/
          return TkCore::INTERP.tk_cmd_tbl[$4].cmd
        else
          #nil
          val
        end
      end

simplelist(val, src_enc=true, dst_enc=true) click to toggle source

                   # File tk/lib/tk.rb, line 601
    def simplelist(val, src_enc=true, dst_enc=true)
      tk_split_simplelist(val, src_enc, dst_enc)
    end

slice_ary(ary, size) click to toggle source

                   # File tk/lib/tk.rb, line 642
    def slice_ary(ary, size)
      sliced = []
      wk_ary = ary.dup
      until wk_ary.size.zero?
        sub_ary = []
        size.times{ sub_ary << wk_ary.shift }
        yield(sub_ary) if block_given?
        sliced << sub_ary
      end
      (block_given?)? ary: sliced
    end

tk_tcl2ruby(val, enc_mode = false, listobj = true) click to toggle source

                   # File tk/lib/tk.rb, line 230
      def tk_tcl2ruby(val, enc_mode = false, listobj = true)
    =begin
        if val =~ /^rb_out\S* (c(_\d+_)?\d+)/
          #return Tk_CMDTBL[$1]
          return TkCore::INTERP.tk_cmd_tbl[$1]
          #cmd_obj = TkCore::INTERP.tk_cmd_tbl[$1]
          #if cmd_obj.kind_of?(Proc) || cmd_obj.kind_of?(Method)
          #  cmd_obj
          #else
          #  cmd_obj.cmd
          #end
        end
    =end
        if val =~ /rb_out\S*(?:\s+(::\S*|[{](::.*)[}]|["](::.*)["]))? (c(_\d+_)?(\d+))/
          return TkCore::INTERP.tk_cmd_tbl[$4]
        end
        #if val.include? ?\s
        #  return val.split.collect{|v| tk_tcl2ruby(v)}
        #end
        case val
        when /\A@font\S+\z/
          TkFont.get_obj(val)
        when /\A-?\d+\z/
          val.to_i
        when /\A\.\S*\z/
          #Tk_WINDOWS[val] ? Tk_WINDOWS[val] : _genobj_for_tkwidget(val)
          TkCore::INTERP.tk_windows[val]?
               TkCore::INTERP.tk_windows[val] : _genobj_for_tkwidget(val)
        when /\Ai(_\d+_)?\d+\z/
          TkImage::Tk_IMGTBL.mutex.synchronize{
            TkImage::Tk_IMGTBL[val]? TkImage::Tk_IMGTBL[val] : val
          }
        when /\A-?\d+\.?\d*(e[-+]?\d+)?\z/
          val.to_f
        when /\\ /
          val.gsub(/\\ /, ' ')
        when /[^\\] /
          if listobj
            #tk_split_escstr(val).collect{|elt|
            #  tk_tcl2ruby(elt, enc_mode, listobj)
            #}
            val = _toUTF8(val) unless enc_mode
            tk_split_escstr(val, false, false).collect{|elt|
              tk_tcl2ruby(elt, true, listobj)
            }
          elsif enc_mode
            _fromUTF8(val)
          else
            val
          end
        else
          if enc_mode
            _fromUTF8(val)
          else
            val
          end
        end
      end

uninstall_cmd(id, local_cmdtbl=nil) click to toggle source

                   # File tk/lib/tk.rb, line 868
    def TkComm.uninstall_cmd(id, local_cmdtbl=nil)
      #id = $1 if /rb_out\S* (c(_\d+_)?\d+)/ =~ id
      id = $4 if id =~ /rb_out\S*(?:\s+(::\S*|[{](::.*)[}]|["](::.*)["]))? (c(_\d+_)?(\d+))/

      if local_cmdtbl && local_cmdtbl.kind_of?(Array)
        begin
          local_cmdtbl.delete(id)
        rescue Exception
          # ignore
        end
      end
      @cmdtbl.delete(id)

      #Tk_CMDTBL.delete(id)
      TkCore::INTERP.tk_cmd_tbl.delete(id)
    end

window(val) click to toggle source

                   # File tk/lib/tk.rb, line 604
    def window(val)
      if val =~ /^\./
        #Tk_WINDOWS[val]? Tk_WINDOWS[val] : _genobj_for_tkwidget(val)
        TkCore::INTERP.tk_windows[val]?
             TkCore::INTERP.tk_windows[val] : _genobj_for_tkwidget(val)
      else
        nil
      end
    end

### Public Instance Methods

bind(tagOrClass, context, *args) click to toggle source

def bind(tagOrClass, context, cmd=Proc.new, *args)

    _bind(["bind", tagOrClass], context, cmd, *args)
    tagOrClass

end

                   # File tk/lib/tk.rb, line 1076
    def bind(tagOrClass, context, *args)
      # if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind(["bind", tagOrClass], context, cmd, *args)
      tagOrClass
    end

bind_all(context, *args) click to toggle source

def #bind_all(context, cmd=Proc.new, *args)

    _bind(['bind', 'all'], context, cmd, *args)
    TkBindTag::ALL

end

                   # File tk/lib/tk.rb, line 1115
    def bind_all(context, *args)
      # if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind(['bind', 'all'], context, cmd, *args)
      TkBindTag::ALL
    end

bind_append(tagOrClass, context, *args) click to toggle source

def #bind_append(tagOrClass, context, cmd=Proc.new, *args)

    _bind_append(["bind", tagOrClass], context, cmd, *args)
    tagOrClass

end

                   # File tk/lib/tk.rb, line 1091
    def bind_append(tagOrClass, context, *args)
      # if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind_append(["bind", tagOrClass], context, cmd, *args)
      tagOrClass
    end

bind_append_all(context, *args) click to toggle source

def #bind_append_all(context, cmd=Proc.new, *args)

    _bind_append(['bind', 'all'], context, cmd, *args)
    TkBindTag::ALL

end

                   # File tk/lib/tk.rb, line 1130
    def bind_append_all(context, *args)
      # if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
      if TkComm._callback_entry?(args[0]) || !block_given?
        cmd = args.shift
      else
        cmd = Proc.new
      end
      _bind_append(['bind', 'all'], context, cmd, *args)
      TkBindTag::ALL
    end

bind_remove(tagOrClass, context) click to toggle source

                   # File tk/lib/tk.rb, line 1102
    def bind_remove(tagOrClass, context)
      _bind_remove(['bind', tagOrClass], context)
      tagOrClass
    end

bind_remove_all(context) click to toggle source

                   # File tk/lib/tk.rb, line 1141
    def bind_remove_all(context)
      _bind_remove(['bind', 'all'], context)
      TkBindTag::ALL
    end

bindinfo(tagOrClass, context=nil) click to toggle source

                   # File tk/lib/tk.rb, line 1107
    def bindinfo(tagOrClass, context=nil)
      _bindinfo(['bind', tagOrClass], context)
    end

bindinfo_all(context=nil) click to toggle source

                   # File tk/lib/tk.rb, line 1146
    def bindinfo_all(context=nil)
      _bindinfo(['bind', 'all'], context)
    end

install_cmd(cmd) click to toggle source

private :install_cmd, :uninstall_cmd module_function :install_cmd, :uninstall_cmd

                   # File tk/lib/tk.rb, line 886
    def install_cmd(cmd)
      TkComm.install_cmd(cmd, @cmdtbl)
    end

mutex() click to toggle source

                   # File tk/lib/tk.rb, line 61
    def mutex; @mutex; end

subst(str, *opts) click to toggle source

                   # File tk/lib/tk.rb, line 665
    def subst(str, *opts)
      # opts := :nobackslashes | :nocommands | novariables
      tk_call('subst',
              *(opts.collect{|opt|
                  opt = opt.to_s
                  (opt[0] == ?-)? opt: '-' << opt
                } << str))
    end

uninstall_cmd(id) click to toggle source

                   # File tk/lib/tk.rb, line 889
    def uninstall_cmd(id)
      TkComm.uninstall_cmd(id, @cmdtbl)
    end