Class: TkNamespace (Ruby 2.3.2)
Description: Class : TkNamespace - Ruby 2.3.2

- Home
- Core 2.3.2
- Std-lib 2.3.2
- Downloads

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

### Home Classes Methods

### In Files

- tk/lib/tk/namespace.rb

### Parent

TkObject

### Namespace

- CLASS TkNamespace::Ensemble
- CLASS TkNamespace::NsCode
- CLASS TkNamespace::ScopeArgs

### Methods

- ::children
- ::code
- ::current
- ::current_path
- ::delete
- ::ensemble_configinfo
- ::ensemble_configure
- ::ensemble_create
- ::ensemble_exist?
- ::eval
- ::exist?
- ::export
- ::export_with_clear
- ::force_import
- ::forget
- ::get_path
- ::get_unknown_handler
- ::id2obj
- ::import
- ::inscope
- ::new
- ::origin
- ::parent
- ::qualifiers
- ::set_path
- ::set_unknown_handler
- ::tail
- ::upvar
- ::which
- ::which_command
- ::which_variable
- #__tk_call
- #__tk_call_with_enc
- #__tk_call_without_enc
- #children
- #code
- #current
- #current_namespace
- #current_path
- #delete
- #eval
- #exist?
- #export
- #export_with_clear
- #force_import
- #forget
- #import
- #inscope
- #install_cmd
- #mutex
- #ns_tk_call
- #ns_tk_call_with_enc
- #ns_tk_call_without_enc
- #parent
- #set_path
- #tk_call
- #tk_call_with_enc
- #tk_call_without_enc
- #upvar

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

# TkNamespace

### Constants

Global
TkCommandNames
Tk_Namespace_ID
Tk_Namespace_ID_TBL
Tk_NsCode_RetObjID_TBL

### Public Class Methods

children(*args) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 291
    def self.children(*args)
      # args ::= [<namespace>] [<pattern>]
      # <pattern> must be glob-style pattern
      tk_split_simplelist(tk_call('namespace', 'children', *args)).collect{|ns|
        # ns is fullname
        Tk_Namespace_ID_TBL.mutex.synchronize{
          if Tk_Namespace_ID_TBL.key?(ns)
            Tk_Namespace_ID_TBL[ns]
          else
            ns
          end
        }
      }
    end

code(script = Proc.new) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 309
    def self.code(script = Proc.new)
      TkNamespace.new('').code(script)
    end

current() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 360
    def self.current
      ns = self.current_path
      Tk_Namespace_ID_TBL.mutex.synchronize{
        if Tk_Namespace_ID_TBL.key?(ns)
          Tk_Namespace_ID_TBL[ns]
        else
          ns
        end
      }
    end

current_path() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 353
    def self.current_path
      tk_call('namespace', 'current')
    end

delete(*ns_list) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 377
    def self.delete(*ns_list)
      tk_call('namespace', 'delete', *ns_list)
      ns_list.each{|ns|
        Tk_Namespace_ID_TBL.mutex.synchronize{
          if ns.kind_of?(TkNamespace)
            Tk_Namespace_ID_TBL.delete(ns.path)
          else
            Tk_Namespace_ID_TBL.delete(ns.to_s)
          end
        }
      }
    end

ensemble_configinfo(cmd, slot = nil) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 403
    def self.ensemble_configinfo(cmd, slot = nil)
      if slot
        tk_call('namespace', 'ensemble', 'configure', cmd, '-' + slot.to_s)
      else
        inf = {}
        Hash(*tk_split_simplelist(tk_call('namespace', 'ensemble', 'configure', cmd))).each{|k, v| inf[k[1..-1]] = v}
        inf
      end
    end

ensemble_configure(cmd, slot, value=None) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 396
    def self.ensemble_configure(cmd, slot, value=None)
      if slot.kind_of?(Hash)
        tk_call('namespace', 'ensemble', 'configure', cmd, *hash_kv(slot))
      else
        tk_call('namespace', 'ensemble', 'configure', cmd, '-'+slot.to_s, value)
      end
    end

ensemble_create(*keys) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 393
    def self.ensemble_create(*keys)
      tk_call('namespace', 'ensemble', 'create', *hash_kv(keys))
    end

ensemble_exist?(cmd) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 412
    def self.ensemble_exist?(cmd)
      bool(tk_call('namespace', 'ensemble', 'exists', cmd))
    end

eval(namespace, cmd = Proc.new, *args) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 416
    def self.eval(namespace, cmd = Proc.new, *args)
      #tk_call('namespace', 'eval', namespace, cmd, *args)
      TkNamespace.new(namespace).eval(cmd, *args)
    end

exist?(ns) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 438
    def self.exist?(ns)
      bool(tk_call('namespace', 'exists', ns))
    end

export(*patterns) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 445
    def self.export(*patterns)
      tk_call('namespace', 'export', *patterns)
    end

export_with_clear(*patterns) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 448
    def self.export_with_clear(*patterns)
      tk_call('namespace', 'export', '-clear', *patterns)
    end

force_import(*patterns) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 468
    def self.force_import(*patterns)
      tk_call('namespace', 'import', '-force', *patterns)
    end

forget(*patterns) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 458
    def self.forget(*patterns)
      tk_call('namespace', 'forget', *patterns)
    end

get_path() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 503
    def self.get_path
      tk_call('namespace', 'path')
    end

get_unknown_handler() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 528
    def self.get_unknown_handler
      tk_tcl2ruby(tk_call('namespace', 'unknown'))
    end

id2obj(id) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 29
    def TkNamespace.id2obj(id)
      Tk_Namespace_ID_TBL.mutex.synchronize{
        Tk_Namespace_ID_TBL[id]? Tk_Namespace_ID_TBL[id]: id
      }
    end

import(*patterns) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 465
    def self.import(*patterns)
      tk_call('namespace', 'import', *patterns)
    end

inscope(namespace, script, *args) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 478
    def self.inscope(namespace, script, *args)
      tk_call('namespace', 'inscope', namespace, script, *args)
    end

new(name = nil, parent = nil) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 245
    def initialize(name = nil, parent = nil)
      unless name
        Tk_Namespace_ID.mutex.synchronize{
          # name = Tk_Namespace_ID.join('')
          name = Tk_Namespace_ID.join(TkCore::INTERP._ip_id_)
          Tk_Namespace_ID[1].succ!
        }
      end
      name = __tk_call('namespace', 'current') if name == ''
      if parent
        if parent =~ /^::/
          if name =~ /^::/
            @fullname = parent + name
          else
            @fullname = parent +'::'+ name
          end
        else
          ancestor = __tk_call('namespace', 'current')
          ancestor = '' if ancestor == '::'
          if name =~ /^::/
            @fullname = ancestor + '::' + parent + name
          else
            @fullname = ancestor + '::'+ parent +'::'+ name
          end
        end
      else # parent == nil
        ancestor = __tk_call('namespace', 'current')
        ancestor = '' if ancestor == '::'
        if name =~ /^::/
          @fullname = name
        else
          @fullname = ancestor + '::' + name
        end
      end
      @path = @fullname
      @parent = __tk_call('namespace', 'qualifiers', @fullname)
      @name = __tk_call('namespace', 'tail', @fullname)

      # create namespace
      __tk_call('namespace', 'eval', @fullname, '')

      Tk_Namespace_ID_TBL.mutex.synchronize{
        Tk_Namespace_ID_TBL[@fullname] = self
      }
    end

origin(cmd) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 485
    def self.origin(cmd)
      tk_call('namespace', 'origin', cmd)
    end

parent(namespace=None) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 489
    def self.parent(namespace=None)
      ns = tk_call('namespace', 'parent', namespace)
      Tk_Namespace_ID_TBL.mutex.synchronize{
        if Tk_Namespace_ID_TBL.key?(ns)
          Tk_Namespace_ID_TBL[ns]
        else
          ns
        end
      }
    end

qualifiers(str) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 513
    def self.qualifiers(str)
      tk_call('namespace', 'qualifiers', str)
    end

set_path(*namespace_list) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 506
    def self.set_path(*namespace_list)
      tk_call('namespace', 'path', array2tk_list(namespace_list))
    end

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

                   # File tk/lib/tk/namespace.rb, line 531
    def self.set_unknown_handler(cmd = Proc.new)
      tk_call('namespace', 'unknown', cmd)
    end

tail(str) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 517
    def self.tail(str)
      tk_call('namespace', 'tail', str)
    end

upvar(namespace, *var_pairs) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 521
    def self.upvar(namespace, *var_pairs)
      tk_call('namespace', 'upvar', namespace, *(var_pairs.flatten))
    end

which(name) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 535
    def self.which(name)
      tk_call('namespace', 'which', name)
    end

which_command(name) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 538
    def self.which_command(name)
      tk_call('namespace', 'which', '-command', name)
    end

which_variable(name) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 541
    def self.which_variable(name)
      tk_call('namespace', 'which', '-variable', name)
    end

### Public Instance Methods

__tk_call(*args) click to toggle source
Alias for: tk_call
__tk_call_with_enc(*args) click to toggle source
Alias for: tk_call_with_enc
__tk_call_without_enc(*args) click to toggle source
Alias for: tk_call_without_enc
children(pattern=None) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 305
    def children(pattern=None)
      TkNamespace.children(@fullname, pattern)
    end

code(script = Proc.new) click to toggle source

# begin¶ ↑

    def code(script = Proc.new)
      if script.kind_of?(String)
        cmd = proc{|*args| ScopeArgs.new(@fullname,*args).instance_eval(script)}
      elsif script.kind_of?(Proc)
        cmd = proc{|*args| ScopeArgs.new(@fullname,*args).instance_eval(&script)}
      else
        fail ArgumentError, "String or Proc is expected"
      end
      TkNamespace::NsCode.new(tk_call_without_enc('namespace', 'code',
                                                  _get_eval_string(cmd, false)))
    end

# end¶ ↑

                   # File tk/lib/tk/namespace.rb, line 325
    def code(script = Proc.new)
      if script.kind_of?(String)
        cmd = proc{|*args|
          ret = ScopeArgs.new(@fullname,*args).instance_eval(script)
          id = ret.object_id
          TkNamespace::Tk_NsCode_RetObjID_TBL[id] = ret
          id
        }
      elsif script.kind_of?(Proc)
        cmd = proc{|*args|
          if TkCore::WITH_RUBY_VM  ### Ruby 1.9 !!!!
            obj = ScopeArgs.new(@fullname,*args)
            ret = obj.instance_exec(obj, &script)
          else
            ret = ScopeArgs.new(@fullname,*args).instance_eval(&script)
          end
          id = ret.object_id
          TkNamespace::Tk_NsCode_RetObjID_TBL[id] = ret
          id
        }
      else
        fail ArgumentError, "String or Proc is expected"
      end
      TkNamespace::NsCode.new(tk_call_without_enc('namespace', 'code',
                                                  _get_eval_string(cmd, false)),
                              true)
    end

current() click to toggle source
Alias for: current_namespace
current_namespace() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 370
    def current_namespace
      # ns_tk_call('namespace', 'current')
      # @fullname
      self
    end

Also aliased as: current
current_path() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 356
    def current_path
      @fullname
    end

delete() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 389
    def delete
      TkNamespece.delete(@fullname)
    end

eval(cmd = Proc.new, *args) click to toggle source

# begin¶ ↑

    def eval(cmd = Proc.new, *args)
      #TkNamespace.eval(@fullname, cmd, *args)
      #ns_tk_call(cmd, *args)
      code_obj = code(cmd)
      ret = code_obj.call(*args)
      # uninstall_cmd(TkCore::INTERP._split_tklist(code_obj.path)[-1])
      uninstall_cmd(_fromUTF8(TkCore::INTERP._split_tklist(_toUTF8(code_obj.path))[-1]))
      tk_tcl2ruby(ret)
    end

# end¶ ↑

                   # File tk/lib/tk/namespace.rb, line 431
    def eval(cmd = Proc.new, *args)
      code_obj = code(cmd)
      ret = code_obj.call(*args)
      uninstall_cmd(_fromUTF8(TkCore::INTERP._split_tklist(_toUTF8(code_obj.path))[-1]))
      ret
    end

exist?() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 441
    def exist?
      TkNamespece.exist?(@fullname)
    end

export() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 451
    def export
      TkNamespace.export(@fullname)
    end

export_with_clear() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 454
    def export_with_clear
      TkNamespace.export_with_clear(@fullname)
    end

force_import() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 474
    def force_import
      TkNamespace.force_import(@fullname)
    end

forget() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 461
    def forget
      TkNamespace.forget(@fullname)
    end

import() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 471
    def import
      TkNamespace.import(@fullname)
    end

inscope(script, *args) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 481
    def inscope(script, *args)
      TkNamespace.inscope(@fullname, script, *args)
    end

install_cmd(cmd) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 210
    def install_cmd(cmd)
      lst = tk_split_simplelist(super(cmd), false, false)
      if lst[1] =~ /^::/
        lst[1] = @fullname
      else
        lst.insert(1, @fullname)
      end
      TkCore::INTERP._merge_tklist(*lst)
    end

mutex() click to toggle source

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

ns_tk_call(*args) click to toggle source
Alias for: tk_call
ns_tk_call_with_enc(*args) click to toggle source
Alias for: tk_call_with_enc
ns_tk_call_without_enc(*args) click to toggle source
Alias for: tk_call_without_enc
parent() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 499
    def parent
      tk_call('namespace', 'parent', @fullname)
    end

set_path() click to toggle source

                   # File tk/lib/tk/namespace.rb, line 509
    def set_path
      tk_call('namespace', 'path', @fullname)
    end

tk_call(*args) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 223
    def tk_call(*args)
      #super('namespace', 'eval', @fullname, *args)
      args = args.collect{|arg| (s = _get_eval_string(arg, true))? s: ''}
      super('namespace', 'eval', @fullname,
            TkCore::INTERP._merge_tklist(*args))
    end

Also aliased as: __tk_call, ns_tk_call
tk_call_with_enc(*args) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 235
    def tk_call_with_enc(*args)
      #super('namespace', 'eval', @fullname, *args)
      args = args.collect{|arg| (s = _get_eval_string(arg, true))? s: ''}
      super('namespace', 'eval', @fullname,
            TkCore::INTERP._merge_tklist(*args))
    end

Also aliased as: __tk_call_with_enc, ns_tk_call_with_enc
tk_call_without_enc(*args) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 229
    def tk_call_without_enc(*args)
      #super('namespace', 'eval', @fullname, *args)
      args = args.collect{|arg| (s = _get_eval_string(arg, true))? s: ''}
      super('namespace', 'eval', @fullname,
            TkCore::INTERP._merge_tklist(*args))
    end

Also aliased as: __tk_call_without_enc, ns_tk_call_without_enc
upvar(*var_pairs) click to toggle source

                   # File tk/lib/tk/namespace.rb, line 524
    def upvar(*var_pairs)
      TkNamespace.inscope(@fullname, *(var_pairs.flatten))
    end