your sample is actually fine. In particular the Ok button handling is the way KLayout's Qt binding suggests. You could also bind the conventional Qt signals to slots using QObject#connect, but there i
you don't need a separate Ruby installation. KLayout comes with a built-in Ruby interpreter. To convert an format to CIF you can use the script described in http://klayout.de/forum/comments.php?Discus