[Tutor] providing a Python command line within a Tkinter appl

2008-01-01 Thread Garry Willgoose
I'm writing a platform independent environmental modelling framework where I provide a GUI (in Tkinter) to a range of env modeling tools in a number of modules written in fortran, C and Python. It all works well but for generality I'd like to provide the user with a command line where he ca

Re: [Tutor] providing a Python command line within a Tkinter appl

2008-01-01 Thread Alan Gauld
"Garry Willgoose" <[EMAIL PROTECTED]> wrote > packages in the first place). Plan A was that I'd somehow like to > use > the python interpreter for this but I can't find any obvious way to > do this. Take a look at the IDLE source cocde. IDLE's interactive shell is essentially what you want - a

Re: [Tutor] Learning about callbaks

2008-01-01 Thread Michael Bernhard Arp Sørensen
Greetings, my masters. This is somewhat difficult to transfer to my program with 2 classes/objects. All examples I've seen is not for more than one instance of a single object. I use more than one class in my program. I have a game class and a menu class. When the user chooses "quit" in the menu,

Re: [Tutor] Learning about callbaks

2008-01-01 Thread Alan Gauld
"Michael Bernhard Arp Sørensen" <[EMAIL PROTECTED]> wrote > I have a game class and a menu class. When the user chooses > "quit" in the menu, I want the menu object to call a method that > executes a quit_program() from the game class. self.game.quit_program() should do it. Except in your cod

[Tutor] Displaying images on a web page

2008-01-01 Thread Dinesh B Vadhia
I want to display a fixed number of same-size (jpeg) images on a web page. The images displayed will change on user input. I can use PIL to write the code but has anyone come across open source code that already does this? Thank-you Dinesh___ Tutor

Re: [Tutor] Displaying images on a web page

2008-01-01 Thread Alan Gauld
"Dinesh B Vadhia" <[EMAIL PROTECTED]> wrote > I want to display a fixed number of same-size (jpeg) images > on a web page. The images displayed will change on user input. Can you be more specific? Do you mean they should change dynamically in the browser or that they will change after a form

Re: [Tutor] Displaying images on a web page

2008-01-01 Thread Michael Langford
On Jan 1, 2008 11:18 AM, Dinesh B Vadhia <[EMAIL PROTECTED]> wrote: > I want to display a fixed number of same-size (jpeg) images on a web > page. The images displayed will change on user input. > > I can use PIL to write the code but has anyone come across open source code > that already does t