OSDN Git Service

Display2 update:
[eos/hostdependX86MAC64.git] / lib / Gmolvie.rb
1
2 #       init0(&info);
3  #   argCheck(&info, argc, argv);
4   #  init1(&info);
5 #!/usr/bin/ruby -I /home/people/risachan/Eos/lib/X86LINUX64
6 require 'molvieRuby'
7 require 'molvie'
8 require "tk"
9 #require ""
10
11 #       info.fptIn=fopen(info.In, "r");
12 #       if(NULL==info.fptIn){
13 #               fprintf(stderr, "FileNotOpend: %s\n", info.In);
14 #               exit(EXIT_FAILURE);
15 #       }
16 #
17 #       lmolviePDBread(info.fptIn);
18
19 #       fclose(info.fptIn);
20
21 class << Molvie
22 def run_on_tk(frame = TkFrame.new(nil,'container'=>true))
23 if frame.container == 0
24 raise RuntimeError,'TkFrame is NOT a container widget.'
25 end 
26 @tk_frame = frame
27 end
28 end
29