Module: TkCore (Ruby 2.2.4)
Description: Module : TkCore - 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/multi-tk.rb
- tk/lib/tk.rb
- tk/lib/tk/bindtag.rb
- tk/lib/tk/canvas.rb
- tk/lib/tk/canvastag.rb
- tk/lib/tk/console.rb
- tk/lib/tk/encodedstr.rb
- tk/lib/tk/event.rb
- tk/lib/tk/font.rb
- tk/lib/tk/image.rb
- tk/lib/tk/menu.rb
- tk/lib/tk/msgcat.rb
- tk/lib/tk/namespace.rb
- tk/lib/tk/optiondb.rb
- tk/lib/tk/root.rb
- tk/lib/tk/text.rb
- tk/lib/tk/textmark.rb
- tk/lib/tk/texttag.rb
- tk/lib/tk/timer.rb
- tk/lib/tk/tk_mac.rb
- tk/lib/tk/variable.rb
- tk/lib/tk/virtevent.rb
- tk/lib/tkextlib/blt.rb
- tk/lib/tkextlib/blt/bitmap.rb
- tk/lib/tkextlib/blt/component.rb
- tk/lib/tkextlib/blt/tabset.rb
- tk/lib/tkextlib/blt/tree.rb
- tk/lib/tkextlib/blt/treeview.rb
- tk/lib/tkextlib/blt/vector.rb
- tk/lib/tkextlib/blt/watch.rb
- tk/lib/tkextlib/bwidget/buttonbox.rb
- tk/lib/tkextlib/bwidget/combobox.rb
- tk/lib/tkextlib/bwidget/dialog.rb
- tk/lib/tkextlib/bwidget/labelframe.rb
- tk/lib/tkextlib/bwidget/listbox.rb
- tk/lib/tkextlib/bwidget/mainframe.rb
- tk/lib/tkextlib/bwidget/notebook.rb
- tk/lib/tkextlib/bwidget/pagesmanager.rb
- tk/lib/tkextlib/bwidget/panedwindow.rb
- tk/lib/tkextlib/bwidget/panelframe.rb
- tk/lib/tkextlib/bwidget/scrollableframe.rb
- tk/lib/tkextlib/bwidget/scrolledwindow.rb
- tk/lib/tkextlib/bwidget/statusbar.rb
- tk/lib/tkextlib/bwidget/titleframe.rb
- tk/lib/tkextlib/bwidget/tree.rb
- tk/lib/tkextlib/bwidget/widget.rb
- tk/lib/tkextlib/itcl/incr_tcl.rb
- tk/lib/tkextlib/itk/incr_tk.rb
- tk/lib/tkextlib/iwidgets/scrolledtext.rb
- tk/lib/tkextlib/tcllib/ico.rb
- tk/lib/tkextlib/tcllib/plotchart.rb
- tk/lib/tkextlib/tcllib/toolbar.rb
- tk/lib/tkextlib/tile.rb
- tk/lib/tkextlib/tile/style.rb
- tk/lib/tkextlib/tile/treeview.rb
- tk/lib/tkextlib/tkHTML/htmlwidget.rb
- tk/lib/tkextlib/tktable/tktable.rb
- tk/lib/tkextlib/treectrl/tktreectrl.rb
- tk/lib/tkextlib/vu/pie.rb
- tk/lib/tkextlib/winico/winico.rb

### Namespace

- CLASS MultiTkIp
- CLASS TkCore::Tk_OBJECT_TABLE

### Methods

- ::callback
- ::inspect
- ::new
- ::to_s
- #_tk_call_to_list_core
- #after
- #after_cancel
- #after_idle
- #appname
- #appsend
- #appsend_deny
- #appsend_displayof
- #call
- #callback_break
- #callback_continue
- #callback_return
- #chooseColor
- #chooseDirectory
- #do_one_event
- #event_generate
- #getMultipleOpenFile
- #getMultipleSaveFile
- #getOpenFile
- #getSaveFile
- #get_eventloop_tick
- #get_eventloop_weight
- #get_no_event_wait
- #inactive
- #inactive_displayof
- #inspect
- #ip_eval
- #ip_eval_with_enc
- #ip_eval_without_enc
- #ip_invoke
- #ip_invoke_with_enc
- #ip_invoke_without_enc
- #is_mainloop?
- #load_cmd_on_ip
- #mainloop
- #mainloop_exist?
- #mainloop_thread?
- #mainloop_watchdog
- #messageBox
- #rb_appsend
- #rb_appsend_displayof
- #reset_inactive
- #reset_inactive_displayof
- #restart
- #scaling
- #scaling_displayof
- #set_eventloop_tick
- #set_eventloop_weight
- #set_no_event_wait
- #tk_call
- #tk_call_to_list
- #tk_call_to_list_with_enc
- #tk_call_to_list_without_enc
- #tk_call_to_simplelist
- #tk_call_to_simplelist_with_enc
- #tk_call_to_simplelist_without_enc
- #tk_call_with_enc
- #tk_call_without_enc
- #to_s
- #windowingsystem

### Included Modules

- TkComm

### 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.

# TkCore

start Tk which depends on MultiTkIp

### Constants

EventFlag
INTERP

  #<RDoc::Comment:0x000000000285b360>

  #<RDoc::Comment:0x0000000002532148>

  #<RDoc::Comment:0x00000000023f0910>

  #<RDoc::Comment:0x00000000022f5f10>

  #<RDoc::Comment:0x000000000200c218>

  #<RDoc::Comment:0x0000000002b00430>

  #<RDoc::Comment:0x0000000002a2c748>

  #<RDoc::Comment:0x0000000001fd15a0>

  #<RDoc::Comment:0x00000000025f1c00>

  #<RDoc::Comment:0x000000000238b8d0>

  #<RDoc::Comment:0x00000000028f6a18>

  #<RDoc::Comment:0x00000000023f31b0>

  #<RDoc::Comment:0x00000000022b8750>

  #<RDoc::Comment:0x00000000018d48b0>

  #<RDoc::Comment:0x0000000002bf15b0>

  #<RDoc::Comment:0x0000000002be9ba8>

INTERP_MUTEX
INTERP_ROOT_CHECK
INTERP_THREAD
INTERP_THREAD_STATUS
RUN_EVENTLOOP_ON_MAIN_THREAD

  *** KNOWN BUG ***

      Main event loop thread of TkAqua (> Tk8.4.9) must be the main
      application thread. So, ruby1.9 users must call Tk.mainloop on
      the main application thread.

  *** ADD (2009/05/10) ***

      In some cases (I don't know the description of conditions),
      TkAqua 8.4.7 has a same kind of hang-up trouble.
      So, if 8.4.7 or later, set RUN_EVENTLOOP_ON_MAIN_THREAD to true.
      When you want to control this mode, please call the following
      (set true/false as you want) before "require 'tk'".
      ----------------------------------------------------------
      module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end
      ----------------------------------------------------------

  *** ADD (2010/07/05) ***

      The value of TclTkLib::WINDOWING_SYSTEM is defined at compiling.
      If it is inconsistent with linked DLL, please call the following
      before "require 'tk'".
      ----------------------------------------------------------
      require 'tcltklib'
      module TclTkLib
        remove_const :WINDOWING_SYSTEM
        WINDOWING_SYSTEM = 'x11' # or 'aqua'
      end
      ----------------------------------------------------------

WIDGET_DESTROY_HOOK
WITH_ENCODING
WITH_RUBY_VM

### Public Class Methods

callback(*arg) click to toggle source

                   # File tk/lib/tk.rb, line 1600
    def TkCore.callback(*arg)
      begin
        if TkCore::INTERP.tk_cmd_tbl.kind_of?(Hash)
          #TkCore::INTERP.tk_cmd_tbl[arg.shift].call(*arg)
          normal_ret = false
          ret = catch(:IRB_EXIT) do  # IRB hack
            retval = TkCore::INTERP.tk_cmd_tbl[arg.shift].call(*arg)
            normal_ret = true
            retval
          end
          unless normal_ret
            # catch IRB_EXIT
            exit(ret)
          end
          ret
        end
      rescue SystemExit=>e
        exit(e.status)
      rescue Interrupt=>e
        fail(e)
      rescue Exception => e
        begin
          msg = _toUTF8(e.class.inspect) + ': ' +
                _toUTF8(e.message) + "\n" +
                "\n---< backtrace of Ruby side >-----\n" +
                _toUTF8(e.backtrace.join("\n")) +
                "\n---< backtrace of Tk side >-------"
          if TkCore::WITH_ENCODING
            msg.force_encoding('utf-8')
          else
            msg.instance_variable_set(:@encoding, 'utf-8')
          end
        rescue Exception
          msg = e.class.inspect + ': ' + e.message + "\n" +
                "\n---< backtrace of Ruby side >-----\n" +
                e.backtrace.join("\n") +
                "\n---< backtrace of Tk side >-------"
        end
        # TkCore::INTERP._set_global_var('errorInfo', msg)
        # fail(e)
        fail(e, msg)
      end
    end

inspect() click to toggle source

                   # File tk/lib/tk.rb, line 1390
    def inspect
      sprintf("#<Class(TkCallbackEntry):%0x>", self.__id__)
    end

Also aliased as: to_s
new(ip, cmd) click to toggle source

                   # File tk/lib/tk.rb, line 1396
    def initialize(ip, cmd)
      @ip = ip
      @cmd = cmd
    end

to_s() click to toggle source
Alias for: inspect

### Public Instance Methods

_tk_call_to_list_core(depth, arg_enc, val_enc, *args) click to toggle source

                   # File tk/lib/tk.rb, line 2132
    def _tk_call_to_list_core(depth, arg_enc, val_enc, *args)
      args = _conv_args([], arg_enc, *args)
      val = _tk_call_core(false, *args)
      if !depth.kind_of?(Integer) || depth == 0
        tk_split_simplelist(val, false, val_enc)
      else
        tk_split_list(val, depth, false, val_enc)
      end
    end

after(ms, cmd=Proc.new) click to toggle source

                   # File tk/lib/tk.rb, line 1686
    def after(ms, cmd=Proc.new)
      cmdid = install_cmd(proc{ret = cmd.call;uninstall_cmd(cmdid); ret})
      after_id = tk_call_without_enc("after",ms,cmdid)
      after_id.instance_variable_set('@cmdid', cmdid)
      after_id
    end

after_cancel(afterId) click to toggle source

# begin¶ ↑

    def after_idle(cmd=Proc.new)
      crit_bup = Thread.critical
      Thread.critical = true

      myid = _curr_cmd_id
      cmdid = install_cmd(proc{ret = cmd.call;uninstall_cmd(myid); ret})

      Thread.critical = crit_bup

      tk_call_without_enc('after','idle',cmdid)
    end

# end¶ ↑

                   # File tk/lib/tk.rb, line 1738
    def after_cancel(afterId)
      tk_call_without_enc('after','cancel',afterId)
      if (cmdid = afterId.instance_variable_get('@cmdid'))
        afterId.instance_variable_set('@cmdid', nil)
        uninstall_cmd(cmdid)
      end
      afterId
    end

after_idle(cmd=Proc.new) click to toggle source

# begin¶ ↑

    def after(ms, cmd=Proc.new)
      crit_bup = Thread.critical
      Thread.critical = true

      myid = _curr_cmd_id
      cmdid = install_cmd(proc{ret = cmd.call;uninstall_cmd(myid); ret})

      Thread.critical = crit_bup

      tk_call_without_enc("after",ms,cmdid)  # return id

# return # if false defined? Thread # Thread.start do # ms = Float(ms)/1000 # ms = 10 if ms == 0 # sleep ms/1000 # cmd.call # end # else # cmdid = install_cmd(cmd) # #tk_call(“after”,ms,cmdid) # end

    end

# end¶ ↑

                   # File tk/lib/tk.rb, line 1718
    def after_idle(cmd=Proc.new)
      cmdid = install_cmd(proc{ret = cmd.call;uninstall_cmd(cmdid); ret})
      after_id = tk_call_without_enc('after','idle',cmdid)
      after_id.instance_variable_set('@cmdid', cmdid)
      after_id
    end

appname(name=None) click to toggle source

                   # File tk/lib/tk.rb, line 1779
    def appname(name=None)
      tk_call('tk', 'appname', name)
    end

appsend(interp, async, *args) click to toggle source

                   # File tk/lib/tk.rb, line 1787
    def appsend(interp, async, *args)
      if $SAFE >= 4
        fail SecurityError, "cannot send Tk commands at level 4"
      elsif $SAFE >= 1 && args.find{|obj| obj.tainted?}
        fail SecurityError, "cannot send tainted Tk commands at level #{$SAFE}"
      end
      if async != true && async != false && async != nil
        args.unshift(async)
        async = false
      end
      if async
        tk_call('send', '-async', '--', interp, *args)
      else
        tk_call('send', '--', interp, *args)
      end
    end

appsend_deny() click to toggle source

                   # File tk/lib/tk.rb, line 1783
    def appsend_deny
      tk_call('rename', 'send', '')
    end

appsend_displayof(interp, win, async, *args) click to toggle source

                   # File tk/lib/tk.rb, line 1822
    def appsend_displayof(interp, win, async, *args)
      if $SAFE >= 4
        fail SecurityError, "cannot send Tk commands at level 4"
      elsif $SAFE >= 1 && args.find{|obj| obj.tainted?}
        fail SecurityError, "cannot send tainted Tk commands at level #{$SAFE}"
      end
      win = '.' if win == nil
      if async != true && async != false && async != nil
        args.unshift(async)
        async = false
      end
      if async
        tk_call('send', '-async', '-displayof', win, '--', interp, *args)
      else
        tk_call('send', '-displayor', win, '--', interp, *args)
      end
    end

call(*args) click to toggle source

                   # File tk/lib/tk.rb, line 1401
    def call(*args)
      @ip.cb_eval(@cmd, *args)
    end

callback_break() click to toggle source

                   # File tk/lib/tk.rb, line 1588
    def callback_break
      fail TkCallbackBreak, "Tk callback returns 'break' status"
    end

callback_continue() click to toggle source

                   # File tk/lib/tk.rb, line 1592
    def callback_continue
      fail TkCallbackContinue, "Tk callback returns 'continue' status"
    end

callback_return() click to toggle source

                   # File tk/lib/tk.rb, line 1596
    def callback_return
      fail TkCallbackReturn, "Tk callback returns 'return' status"
    end

chooseColor(keys = nil) click to toggle source

                   # File tk/lib/tk.rb, line 2022
    def chooseColor(keys = nil)
      tk_call('tk_chooseColor', *hash_kv(keys))
    end

chooseDirectory(keys = nil) click to toggle source

                   # File tk/lib/tk.rb, line 2026
    def chooseDirectory(keys = nil)
      tk_call('tk_chooseDirectory', *hash_kv(keys))
    end

do_one_event(flag = TclTkLib::EventFlag::ALL) click to toggle source

                   # File tk/lib/tk.rb, line 1948
    def do_one_event(flag = TclTkLib::EventFlag::ALL)
      TclTkLib.do_one_event(flag)
    end

event_generate(win, context, keys=nil) click to toggle source

                   # File tk/lib/tk.rb, line 1989
    def event_generate(win, context, keys=nil)
      #win = win.path if win.kind_of?(TkObject)
      if context.kind_of?(TkEvent::Event)
        context.generate(win, ((keys)? keys: {}))
      elsif keys
        tk_call_without_enc('event', 'generate', win,
                            "<#{tk_event_sequence(context)}>",
                            *hash_kv(keys, true))
      else
        tk_call_without_enc('event', 'generate', win,
                            "<#{tk_event_sequence(context)}>")
      end
      nil
    end

getMultipleOpenFile(keys = nil) click to toggle source

                   # File tk/lib/tk.rb, line 2011
    def getMultipleOpenFile(keys = nil)
      simplelist(tk_call('tk_getOpenFile', '-multiple', '1', *hash_kv(keys)))
    end

getMultipleSaveFile(keys = nil) click to toggle source

                   # File tk/lib/tk.rb, line 2018
    def getMultipleSaveFile(keys = nil)
      simplelist(tk_call('tk_getSaveFile', '-multiple', '1', *hash_kv(keys)))
    end

getOpenFile(keys = nil) click to toggle source

                   # File tk/lib/tk.rb, line 2008
    def getOpenFile(keys = nil)
      tk_call('tk_getOpenFile', *hash_kv(keys))
    end

getSaveFile(keys = nil) click to toggle source

                   # File tk/lib/tk.rb, line 2015
    def getSaveFile(keys = nil)
      tk_call('tk_getSaveFile', *hash_kv(keys))
    end

get_eventloop_tick() click to toggle source

                   # File tk/lib/tk.rb, line 1956
    def get_eventloop_tick()
      TclTkLib.get_eventloop_tick
    end

get_eventloop_weight() click to toggle source

                   # File tk/lib/tk.rb, line 1972
    def get_eventloop_weight()
      TclTkLib.get_eventloop_weight
    end

get_no_event_wait() click to toggle source

                   # File tk/lib/tk.rb, line 1964
    def get_no_event_wait()
      TclTkLib.get_no_eventloop_wait
    end

inactive() click to toggle source

                   # File tk/lib/tk.rb, line 1766
    def inactive
      Integer(tk_call_without_enc('tk', 'inactive'))
    end

inactive_displayof(win) click to toggle source

                   # File tk/lib/tk.rb, line 1769
    def inactive_displayof(win)
      Integer(tk_call_without_enc('tk', 'inactive', '-displayof', win))
    end

inspect() click to toggle source

                   # File tk/lib/tk.rb, line 1404
    def inspect
      sprintf("#<cb_entry:%0x>", self.__id__)
    end

Also aliased as: to_s
ip_eval(cmd_string) click to toggle source

                   # File tk/lib/tk.rb, line 2046
    def ip_eval(cmd_string)
      _ip_eval_core(nil, cmd_string)
    end

ip_eval_with_enc(cmd_string) click to toggle source

                   # File tk/lib/tk.rb, line 2054
    def ip_eval_with_enc(cmd_string)
      _ip_eval_core(true, cmd_string)
    end

ip_eval_without_enc(cmd_string) click to toggle source

                   # File tk/lib/tk.rb, line 2050
    def ip_eval_without_enc(cmd_string)
      _ip_eval_core(false, cmd_string)
    end

ip_invoke(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2074
    def ip_invoke(*args)
      _ip_invoke_core(nil, *args)
    end

ip_invoke_with_enc(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2082
    def ip_invoke_with_enc(*args)
      _ip_invoke_core(true, *args)
    end

ip_invoke_without_enc(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2078
    def ip_invoke_without_enc(*args)
      _ip_invoke_core(false, *args)
    end

is_mainloop?() click to toggle source

                   # File tk/lib/tk.rb, line 1939
    def is_mainloop?
      TclTkLib.mainloop_thread? == true
    end

load_cmd_on_ip(tk_cmd) click to toggle source

# begin¶ ↑

    def TkCore.callback(arg_str)
      # arg = tk_split_list(arg_str)
      arg = tk_split_simplelist(arg_str)
      #_get_eval_string(TkUtil.eval_cmd(Tk_CMDTBL[arg.shift], *arg))
      #_get_eval_string(TkUtil.eval_cmd(TkCore::INTERP.tk_cmd_tbl[arg.shift],
      #                        *arg))
      # TkCore::INTERP.tk_cmd_tbl[arg.shift].call(*arg)
      begin
        TkCore::INTERP.tk_cmd_tbl[arg.shift].call(*arg)
      rescue Exception => e
        raise(e, e.class.inspect + ': ' + e.message + "\n" +
                 "\n---< backtrace of Ruby side >-----\n" +
                 e.backtrace.join("\n") +
                 "\n---< backtrace of Tk side >-------")
      end

#=begin # cb_obj = MultiTkIp.tk_cmd_tbl # unless $DEBUG # cb_obj.call(*arg) # else # begin # raise 'check backtrace' # rescue # # ignore backtrace before 'callback' # pos = -($!.backtrace.size) # end # begin # cb_obj.call(*arg) # rescue # trace = $!.backtrace # raise $!, “n#{trace}: #{$!.message} (#{$!.class})n” + # “tfrom #{trace.join(”ntfrom “)}” # end # end #=end

    end

# end¶ ↑

                   # File tk/lib/tk.rb, line 1682
    def load_cmd_on_ip(tk_cmd)
      bool(tk_call('auto_load', tk_cmd))
    end

mainloop(check_root = true) click to toggle source

                   # File tk/lib/tk.rb, line 1863
    def mainloop(check_root = true)
      if !TkCore::WITH_RUBY_VM
        TclTkLib.mainloop(check_root)

      elsif TkCore::RUN_EVENTLOOP_ON_MAIN_THREAD
        # if TclTkLib::WINDOWING_SYSTEM == 'aqua' &&
        #if TkCore::INTERP._invoke_without_enc('tk','windowingsystem')=='aqua' &&
        #    Thread.current != Thread.main &&
        #    (TclTkLib.get_version <=> [8,4,TclTkLib::RELEASE_TYPE::FINAL,9]) > 0
        #  raise RuntimeError,
        #       "eventloop on TkAqua ( > Tk8.4.9 ) works on the main thread only"
        #end
        if Thread.current != Thread.main
          raise RuntimeError, "Tk.mainloop is allowed on the main thread only"
        end
        TclTkLib.mainloop(check_root)

      else ### Ruby 1.9 !!!!!
        unless TkCore::INTERP.default_master?
          # [MultiTkIp] slave interp ?
          return TkCore::INTERP._thread_tkwait('window', '.') if check_root
        end

        # like as 1.8, withdraw a root widget before calling Tk.mainloop
        TkCore::INTERP._eval_without_enc('catch {unset __initial_state_of_rubytk__}')
        INTERP_THREAD.run

        begin
          TclTkLib.set_eventloop_window_mode(true)

          # force run the eventloop
          TkCore::INTERP._eval_without_enc('update')
          TkCore::INTERP._eval_without_enc('catch {set __initial_state_of_rubytk__}')
          INTERP_THREAD.run
          if check_root
            INTERP_MUTEX.synchronize{
              INTERP_ROOT_CHECK.wait(INTERP_MUTEX)
              status = INTERP_THREAD_STATUS.value
              if status && TkCore::INTERP.default_master?
                INTERP_THREAD_STATUS.value = nil if $SAFE < 4
                raise status if status.kind_of?(Exception)
              end
            }
          else
            # INTERP_THREAD.value
            begin
              INTERP_THREAD.value
            rescue Exception => e
              raise e
            end
          end
        rescue Exception => e
          raise e
        ensure
          TclTkLib.set_eventloop_window_mode(false)
        end
      end
    end

mainloop_exist?() click to toggle source

                   # File tk/lib/tk.rb, line 1935
    def mainloop_exist?
      TclTkLib.mainloop_thread? != nil
    end

mainloop_thread?() click to toggle source

                   # File tk/lib/tk.rb, line 1922
    def mainloop_thread?
      # true  : current thread is mainloop
      # nil   : there is no mainloop
      # false : mainloop is running on the other thread
      #         ( At then, it is dangerous to call Tk interpreter directly. )
      if !TkCore::WITH_RUBY_VM || TkCore::RUN_EVENTLOOP_ON_MAIN_THREAD
        ### Ruby 1.9 !!!!!!!!!!!
        TclTkLib.mainloop_thread?
      else
        Thread.current == INTERP_THREAD
      end
    end

mainloop_watchdog(check_root = true) click to toggle source

                   # File tk/lib/tk.rb, line 1943
    def mainloop_watchdog(check_root = true)
      # watchdog restarts mainloop when mainloop is dead
      TclTkLib.mainloop_watchdog(check_root)
    end

messageBox(keys) click to toggle source

                   # File tk/lib/tk.rb, line 2004
    def messageBox(keys)
      tk_call('tk_messageBox', *hash_kv(keys))
    end

rb_appsend(interp, async, *args) click to toggle source

                   # File tk/lib/tk.rb, line 1804
    def rb_appsend(interp, async, *args)
      if $SAFE >= 4
        fail SecurityError, "cannot send Ruby commands at level 4"
      elsif $SAFE >= 1 && args.find{|obj| obj.tainted?}
        fail SecurityError, "cannot send tainted Ruby commands at level #{$SAFE}"
      end
      if async != true && async != false && async != nil
        args.unshift(async)
        async = false
      end
      #args = args.collect!{|c| _get_eval_string(c).gsub(/[\[\]$"]/, '\\\\\&')}
      args = args.collect!{|c| _get_eval_string(c).gsub(/[\[\]$"\\]/, '\\\\\&')}
      # args.push(').to_s"')
      # appsend(interp, async, 'ruby "(', *args)
      args.push('}.call)"')
      appsend(interp, async, 'ruby "TkComm._get_eval_string(proc{', *args)
    end

rb_appsend_displayof(interp, win, async, *args) click to toggle source

                   # File tk/lib/tk.rb, line 1840
    def rb_appsend_displayof(interp, win, async, *args)
      if $SAFE >= 4
        fail SecurityError, "cannot send Ruby commands at level 4"
      elsif $SAFE >= 1 && args.find{|obj| obj.tainted?}
        fail SecurityError, "cannot send tainted Ruby commands at level #{$SAFE}"
      end
      win = '.' if win == nil
      if async != true && async != false && async != nil
        args.unshift(async)
        async = false
      end
      #args = args.collect!{|c| _get_eval_string(c).gsub(/[\[\]$"]/, '\\\\\&')}
      args = args.collect!{|c| _get_eval_string(c).gsub(/[\[\]$"\\]/, '\\\\\&')}
      # args.push(').to_s"')
      # appsend_displayof(interp, win, async, 'ruby "(', *args)
      args.push('}.call)"')
      appsend(interp, win, async, 'ruby "TkComm._get_eval_string(proc{', *args)
    end

reset_inactive() click to toggle source

                   # File tk/lib/tk.rb, line 1772
    def reset_inactive
      tk_call_without_enc('tk', 'inactive', 'reset')
    end

reset_inactive_displayof(win) click to toggle source

                   # File tk/lib/tk.rb, line 1775
    def reset_inactive_displayof(win)
      tk_call_without_enc('tk', 'inactive', '-displayof', win, 'reset')
    end

restart(app_name = nil, keys = {}) click to toggle source

                   # File tk/lib/tk.rb, line 1976
    def restart(app_name = nil, keys = {})
      TkCore::INTERP.init_ip_internal

      tk_call('set', 'argv0', app_name) if app_name
      if keys.kind_of?(Hash)
        # tk_call('set', 'argc', keys.size * 2)
        tk_call('set', 'argv', hash_kv(keys).join(' '))
      end

      INTERP.restart
      nil
    end

scaling(scale=nil) click to toggle source

                   # File tk/lib/tk.rb, line 1751
    def scaling(scale=nil)
      if scale
        tk_call_without_enc('tk', 'scaling', scale)
      else
        Float(number(tk_call_without_enc('tk', 'scaling')))
      end
    end

scaling_displayof(win, scale=nil) click to toggle source

                   # File tk/lib/tk.rb, line 1758
    def scaling_displayof(win, scale=nil)
      if scale
        tk_call_without_enc('tk', 'scaling', '-displayof', win, scale)
      else
        Float(number(tk_call_without_enc('tk', '-displayof', win, 'scaling')))
      end
    end

set_eventloop_tick(timer_tick) click to toggle source

                   # File tk/lib/tk.rb, line 1952
    def set_eventloop_tick(timer_tick)
      TclTkLib.set_eventloop_tick(timer_tick)
    end

set_eventloop_weight(loop_max, no_event_tick) click to toggle source

                   # File tk/lib/tk.rb, line 1968
    def set_eventloop_weight(loop_max, no_event_tick)
      TclTkLib.set_eventloop_weight(loop_max, no_event_tick)
    end

set_no_event_wait(wait) click to toggle source

                   # File tk/lib/tk.rb, line 1960
    def set_no_event_wait(wait)
      TclTkLib.set_no_even_wait(wait)
    end

tk_call(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2120
    def tk_call(*args)
      _tk_call_core(nil, *args)
    end

tk_call_to_list(*args) click to toggle source

private :_tk_call_to_list_core

                   # File tk/lib/tk.rb, line 2143
    def tk_call_to_list(*args)
      _tk_call_to_list_core(-1, nil, true, *args)
    end

tk_call_to_list_with_enc(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2151
    def tk_call_to_list_with_enc(*args)
      _tk_call_to_list_core(-1, true, true, *args)
    end

tk_call_to_list_without_enc(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2147
    def tk_call_to_list_without_enc(*args)
      _tk_call_to_list_core(-1, false, false, *args)
    end

tk_call_to_simplelist(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2155
    def tk_call_to_simplelist(*args)
      _tk_call_to_list_core(0, nil, true, *args)
    end

tk_call_to_simplelist_with_enc(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2163
    def tk_call_to_simplelist_with_enc(*args)
      _tk_call_to_list_core(0, true, true, *args)
    end

tk_call_to_simplelist_without_enc(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2159
    def tk_call_to_simplelist_without_enc(*args)
      _tk_call_to_list_core(0, false, false, *args)
    end

tk_call_with_enc(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2128
    def tk_call_with_enc(*args)
      _tk_call_core(true, *args)
    end

tk_call_without_enc(*args) click to toggle source

                   # File tk/lib/tk.rb, line 2124
    def tk_call_without_enc(*args)
      _tk_call_core(false, *args)
    end

to_s() click to toggle source
Alias for: inspect
windowingsystem() click to toggle source

                   # File tk/lib/tk.rb, line 1747
    def windowingsystem
      tk_call_without_enc('tk', 'windowingsystem')
    end