Class: TkApplication

Inherits:
Application show all
Defined in:
lib/a-tkcommons.rb

Direct Known Subclasses

Arcadia

Constant Summary

Constants included from Configurable

Configurable::ADD_SYMBOL, Configurable::FONT_TYPE_SYMBOL, Configurable::LC_SYMBOL, Configurable::LINK_SYMBOL

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Application

#[], #[]=, array_conf, conf, #conf, conf_array, #create, del_conf, del_conf_group, instance, #load_local_config, #load_theme, local_dir, #local_dir, #local_file_config, #objects, #prepare, #publish, #update_local_config, version

Methods included from EventBus

#attach_listener, #attach_listeners_listener, #broadcast_event, #detach_listener, #detach_listeners_listener, #process_event

Methods included from Persistable

#append_persistent_property, #override_persistent

Methods included from Configurable

clear_properties_group_cache, #hash2properties_file, #make_locale_value, #make_value, #properties_file2hash, properties_group, #resolve_locale_value, #resolve_properties_link, #resolve_value

Constructor Details

#initialize(_application_params) ⇒ TkApplication

Returns a new instance of TkApplication.



79
80
81
82
# File 'lib/a-tkcommons.rb', line 79

def initialize(_application_params)
  super(_application_params)
  @tcltk_info = TclTkInfo.new
end

Instance Attribute Details

#tcltk_infoObject (readonly)

Returns the value of attribute tcltk_info.



78
79
80
# File 'lib/a-tkcommons.rb', line 78

def tcltk_info
  @tcltk_info
end

Class Method Details

.sys_infoObject



84
85
86
# File 'lib/a-tkcommons.rb', line 84

def self.sys_info
  "#{super}\n[TclTk version = #{TclTkInfo.new.level}]"
end

Instance Method Details

#runObject



88
89
90
91
# File 'lib/a-tkcommons.rb', line 88

def run
  Tk.appname(self['applicationParams'].name)
  Tk.mainloop
end