# File rbSnack/tkSnack.rb, line 83 def initializeSnack root raise "initializeSnack requires valid Tkroot" unless root.type==TkRoot include Config snackLib = CONFIG["snackLib"] snackLib = File.join(CONFIG["sitelibdir"], "rbSnack") unless snackLib!=nil @@root=root @@root.tk_call('eval', "lappend auto_path #{snackLib}") @@root.tk_call('eval', 'package require -exact snack 2.2') @@root.tk_call('snack::createIcons') @@root.tk_call('eval', 'proc nopCallback {message fraction} { return }') SnOp::initialize end