Skip to content

Commit

Permalink
Avoid circular require warnings for require 'tk'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jan 24, 2024
1 parent be2d357 commit 3945723
Show file tree
Hide file tree
Showing 288 changed files with 288 additions and 288 deletions.
2 changes: 1 addition & 1 deletion lib/multi-tk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3519,4 +3519,4 @@ class MultiTkIp
module TkCore
INTERP = MultiTkIp
end
require 'tk'
require 'tk' unless defined?(Tk)
2 changes: 1 addition & 1 deletion lib/thread_tk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
end

module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = false; end
require 'tk'
require 'tk' unless defined?(Tk)
2 changes: 1 addition & 1 deletion lib/tk/bgerror.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# tkbgerror -- bgerror ( tkerror ) module
# 1998/07/16 by Hidetoshi Nagai <[email protected]>
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkBgError
extend Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/bindtag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/bind.rb : control event binding
#
require 'tk'
require 'tk' unless defined?(Tk)

class TkBindTag
include TkBindCore
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/busy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/busy.rb: support 'tk busy' command (Tcl/Tk8.6 or later)
#
require 'tk'
require 'tk' unless defined?(Tk)

module Tk::Busy
include TkCore
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/button.rb : treat button widget
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/label'

class Tk::Button<Tk::Label
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/canvas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# tk/canvas.rb - Tk canvas classes
# by Yukihiro Matsumoto <[email protected]>
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/canvastag'
require 'tk/itemconfig'
require 'tk/scrollable'
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/canvastag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/canvastag.rb - methods for treating canvas tags
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/tagfont'

module TkcTagAccess
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/checkbutton.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/checkbutton.rb : treat checkbutton widget
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/radiobutton'

class Tk::CheckButton<Tk::RadioButton
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/clipboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/clipboard.rb : methods to treat clipboard
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkClipboard
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/clock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/clock.rb : methods for clock command
#
require 'tk'
require 'tk' unless defined?(Tk)

module Tk
module Clock
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/composite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/composite.rb :
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkComposite
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/console.rb : control the console on system without a real console
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkConsole
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/dialog.rb : create dialog boxes
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/variable.rb'

class TkDialogObj < TkWindow
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/encodedstr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/encodedstr.rb : Tk::EncodedString class
#
require 'tk'
require 'tk' unless defined?(Tk)

###########################################
# string with Tcl's encoding
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# tk/entry.rb - Tk entry classes
# by Yukihiro Matsumoto <[email protected]>

require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/label'
require 'tk/scrollable'
require 'tk/validation'
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/font.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# by Hidetoshi NAGAI ([email protected])
#
require 'tk'
require 'tk' unless defined?(Tk)

class TkFont
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/fontchooser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/fontchooser.rb -- "tk fontchooser" support (Tcl/Tk8.6 or later)
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/font'

module TkFont::Chooser
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/frame.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/frame.rb : treat frame widget
#
require 'tk'
require 'tk' unless defined?(Tk)

class Tk::Frame<TkWindow
TkCommandNames = ['frame'.freeze].freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/grid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/grid.rb : control grid geometry manager
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkGrid
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# tk/image.rb : treat Tk image objects
#

require 'tk'
require 'tk' unless defined?(Tk)

class TkImage<TkObject
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/itemconfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/itemconfig.rb : control item/tag configuration of widget
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tkutil'
require 'tk/itemfont.rb'

Expand Down
2 changes: 1 addition & 1 deletion lib/tk/itemfont.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/itemfont.rb : control font of widget items
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkItemFontOptkeys
def __item_font_optkeys(id)
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/kinput.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/kinput.rb : control kinput
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkKinput
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/label.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/label.rb : treat label widget
#
require 'tk'
require 'tk' unless defined?(Tk)

class Tk::Label<TkWindow
TkCommandNames = ['label'.freeze].freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/labelframe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/labelframe.rb : treat labelframe widget
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/frame'

class Tk::LabelFrame<Tk::Frame
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/listbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/listbox.rb : treat listbox widget
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/itemconfig'
require 'tk/scrollable'
require 'tk/txtwin_abst'
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/macpkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# This is NOT TESTED. Because I have no test-environment.
#
#
require 'tk'
require 'tk' unless defined?(Tk)

module Tk
def Tk.load_tclscript_rsrc(resource_name, file=None)
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/menu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/menu.rb : treat menu and menubutton
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/itemconfig'
require 'tk/menuspec'

Expand Down
2 changes: 1 addition & 1 deletion lib/tk/menubar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
# To use add_menu, configuration must be done by calling configure after
# adding all menus by add_menu, not by the constructor arguments.

require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/frame'
require 'tk/composite'
require 'tk/menuspec'
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/message.rb : treat message widget
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/label'

class Tk::Message<Tk::Label
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/mngfocus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# tk/mngfocus.rb : methods for Tcl/Tk standard library 'focus.tcl'
# by Hidetoshi Nagai <[email protected]>
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkManageFocus
extend Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/msgcat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# tk/msgcat.rb : methods for Tcl message catalog
# by Hidetoshi Nagai <[email protected]>
#
require 'tk'
require 'tk' unless defined?(Tk)

#class TkMsgCatalog
class TkMsgCatalog < TkObject
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/namespace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# tk/namespace.rb : methods to manipulate Tcl/Tk namespace
# by Hidetoshi Nagai <[email protected]>
#
require 'tk'
require 'tk' unless defined?(Tk)

class TkNamespace < TkObject
extend Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/optiondb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/optiondb.rb : treat option database
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkOptionDB
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/optionobj.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# e.g. hash_kv({'aaa'=>1, 'bbb'=>Tk::None, 'ccc'=>3})
# => ["-aaa", 1, "-bbb", "-ccc", 3]
#
require 'tk'
require 'tk' unless defined?(Tk)

module Tk
class OptionObj < Hash
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/pack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/pack.rb : control pack geometry manager
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkPack
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/package.rb : package command
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkPackage
include TkCore
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/palette.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# tk/palette.rb : methods for Tcl/Tk standard library 'palette.tcl'
# 1998/06/21 by Hidetoshi Nagai <[email protected]>
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkPalette
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/panedwindow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/panedwindow.rb : treat panedwindow
#
require 'tk'
require 'tk' unless defined?(Tk)

class Tk::PanedWindow<TkWindow
TkCommandNames = ['panedwindow'.freeze].freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/place.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/place.rb : control place geometry manager
#
require 'tk'
require 'tk' unless defined?(Tk)

module TkPlace
include Tk
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/radiobutton.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/radiobutton.rb : treat radiobutton widget
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/button'

class Tk::RadioButton<Tk::Button
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/root.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/root.rb : treat root widget
#
require 'tk'
require 'tk' unless defined?(Tk)
require 'tk/wm'
require 'tk/menuspec'

Expand Down
2 changes: 1 addition & 1 deletion lib/tk/scale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/scale.rb : treat scale widget
#
require 'tk'
require 'tk' unless defined?(Tk)

class Tk::Scale<TkWindow
TkCommandNames = ['scale'.freeze].freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/tk/scrollable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# tk/scrollable.rb : module for scrollable widget
#
require 'tk'
require 'tk' unless defined?(Tk)

module Tk
module XScrollable
Expand Down
Loading

0 comments on commit 3945723

Please sign in to comment.