It looks like you're new here. If you want to get involved, click one of these buttons!
I am writing an application where I would like to use Klayout-supplied behavior but I don't need the normal Klayout user interface. I have written my GUI in
QT Designer as a .ui file that I load this way:
module MyMacro
include RBA
HERE = File.dirname(__FILE__)
UI = File.join(HERE, '..', 'data', 'framebuilder5.ui')
ui_file = QFile::new(UI)
ui_file.open(QIODevice::ReadOnly.to_i)
dialog = QFormBuilder::new.load(ui_file, Application::instance.main_window)
ui_file.close
dialog.show
end
I don't know how to keep the Klayout GUI from appearing without taking away my
application's GUI capability. Can anyone suggest a solution?
My version of Klayout is 0.23.9 compiled with Qt 4.8.5 and Ruby 1.9.3 on RedHat Linux 5.6 (sorry I cannot update my OS).
Thanks,
Dave
Comments
Hi Dave,
The "-z" command line option is your friend. You can use it with "-r" to run a script without starting the application:
Here is a sample:
Save this to "dialog.rb" and run it this way:
Matthias
That worked! Thank you Matthias!