Regarding 1.), I just answered a similar request here: http://klayout.de/forum/comments.php?DiscussionID=439&page=1#Comment_1873. In your case, since you have a STROKED_POLYGON PCell, the para
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