Resource Menu


posted by Jourdain Sebastien at Oct 10, 2006 9:27 AM
Quote
This feature has been added in the 1.3 release
posted by Jourdain Sebastien at Apr 19, 2006 4:45 AM
Quote
Sorry but the code sample that I gave you was in Java… If you don't want to compile a new main for JyConsole, just tell me I will try to add the feature in the next release… But I won't be able to tell you when I will update it…
posted by Jourdain Sebastien at Apr 19, 2006 4:19 AM
Quote
Thanks for your support,

Sorry for my answear a bite late but I was quite busy lately...

It's possible to run some setup at the begining to do so you will have to do something like that.

JyConsole consolePython = new JyConsole();
// load a file 
consolePython.executePythonFile(new File("setup.py"));

// add a variable inside a console consolePython.getPythonInterpreter().set("console", consolePython);

JFrame f = new JFrame("frame title"); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(consolePython, BorderLayout.CENTER); f.setSize(600, 400); f.setLocationRelativeTo(null); f.setVisible(true);

posted by Guest at Apr 15, 2006 10:02 AM
Quote
Hello, is there a way to get JyConsole to run a script passed to it on the command line? I have 8 lines of "setup" script that I need to run first in the console before I start really using it.

Great job on the console. i do believe it's the best one out there.

thanks in advance, -matt