Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > A GUI framework for running simulations

Reply
Thread Tools

A GUI framework for running simulations

 
 
ram.rachum@gmail.com
Guest
Posts: n/a
 
      01-23-2008
Hello! I am currently working on writing a simulation engine for
special relativity physics. I'm writing it in Python, of course. I'm
doing fine with the engine, but I want a GUI framework in which I
could use it conveniently, and test different setups on it. I'm not so
strong with GUI programming. I looked at Tkinter, I looked at
WxPython, I looked at PythonCard. It all looks pretty daunting.

My question is, does there exist a GUI package that is intended
specifically for simulations? I saw a program called Golly, which is a
simulation for Conway's Game of Life. Its GUI had most of the features
I needed. For example, you can load a setup, there are "play" and
"stop" buttons, you can change a setup and save it, etc.

So does anyone know of a general GUI framework for running
simulations?
 
Reply With Quote
 
 
 
 
Guilherme Polo
Guest
Posts: n/a
 
      01-23-2008
2008/1/23, http://www.velocityreviews.com/forums/(E-Mail Removed) <(E-Mail Removed)>:
> Hello! I am currently working on writing a simulation engine for
> special relativity physics. I'm writing it in Python, of course. I'm
> doing fine with the engine, but I want a GUI framework in which I
> could use it conveniently, and test different setups on it. I'm not so
> strong with GUI programming. I looked at Tkinter, I looked at
> WxPython, I looked at PythonCard. It all looks pretty daunting.
>
> My question is, does there exist a GUI package that is intended
> specifically for simulations? I saw a program called Golly, which is a
> simulation for Conway's Game of Life. Its GUI had most of the features
> I needed. For example, you can load a setup, there are "play" and
> "stop" buttons, you can change a setup and save it, etc.
>


Golly uses wxWidgets, and if you are planning to use Python then you
would be using wxPython.

> So does anyone know of a general GUI framework for running
> simulations?


All them serves this purpose. The main part of your gui application
will be a custom widget that you will need to do yourself.

> --
> http://mail.python.org/mailman/listinfo/python-list
>



--
-- Guilherme H. Polo Goncalves
 
Reply With Quote
 
 
 
 
Stef Mientki
Guest
Posts: n/a
 
      01-23-2008
(E-Mail Removed) wrote:
> Hello! I am currently working on writing a simulation engine for
> special relativity physics. I'm writing it in Python, of course. I'm
> doing fine with the engine, but I want a GUI framework in which I
> could use it conveniently, and test different setups on it. I'm not so
> strong with GUI programming. I looked at Tkinter, I looked at
> WxPython, I looked at PythonCard. It all looks pretty daunting.
>
> My question is, does there exist a GUI package that is intended
> specifically for simulations? I saw a program called Golly, which is a
> simulation for Conway's Game of Life. Its GUI had most of the features
> I needed. For example, you can load a setup, there are "play" and
> "stop" buttons, you can change a setup and save it, etc.
>
> So does anyone know of a general GUI framework for running
> simulations?


although quit premature,
PyLab_Works might be of interest,
see some demos here (watch the demo at the bottom first):
http://oase.uci.kun.nl/~mientki/data...reenshots.html

(you can contact me offline if PyLab_Works looks interesting to you).

cheers,
Stef Mientki
 
Reply With Quote
 
ram.rachum@gmail.com
Guest
Posts: n/a
 
      01-23-2008
On Jan 23, 5:12*pm, Stef Mientki <(E-Mail Removed)>
wrote:
> (E-Mail Removed) wrote:
> > Hello! I am currently working on writing a simulation engine for
> > special relativity physics. I'm writing it in Python, of course. I'm
> > doing fine with the engine, but I want a GUI framework in which I
> > could use it conveniently, and test different setups on it. I'm not so
> > strong with GUI programming. I looked at Tkinter, I looked at
> > WxPython, I looked at PythonCard. It all looks pretty daunting.

>
> > My question is, does there exist a GUI package that is intended
> > specifically for simulations? I saw a program called Golly, which is a
> > simulation for Conway's Game of Life. Its GUI had most of the features
> > I needed. For example, you can load a setup, there are "play" and
> > "stop" buttons, you can change a setup and save it, etc.

>
> > So does anyone know of a general GUI framework for running
> > simulations?

>
> although quit premature,
> PyLab_Works might be of interest,
> see some demos here (watch the demo at the bottom first):http://oase.uci.kun.nl/~mientki/data..._animations_sc...
>
> (you can contact me offline if PyLab_Works looks interesting to you).
>
> cheers,
> Stef Mientki


Thank you, Stef and Guilherme. I'll be checking those things out. If
anyone else who has an idea for something that can help me, I'll be
happy to hear it!

Ram.
 
Reply With Quote
 
Martin Manns
Guest
Posts: n/a
 
      01-23-2008
On Wed, 23 Jan 2008 06:10:07 -0800 (PST)
"(E-Mail Removed)" <(E-Mail Removed)> wrote:

> Hello! I am currently working on writing a simulation engine for
> special relativity physics. I'm writing it in Python, of course. I'm
> doing fine with the engine, but I want a GUI framework in which I
> could use it conveniently, and test different setups on it. I'm not so
> strong with GUI programming. I looked at Tkinter, I looked at
> WxPython, I looked at PythonCard. It all looks pretty daunting.


If you want to keep things simple, pygame could be an alternative for
visualizing simulations and setting parameters even though it does not
provide all these fancy widgets around.

Martin
 
Reply With Quote
 
Nick Craig-Wood
Guest
Posts: n/a
 
      01-24-2008
Martin Manns <(E-Mail Removed)> wrote:
> If you want to keep things simple, pygame could be an alternative for
> visualizing simulations and setting parameters even though it does not
> provide all these fancy widgets around.


I'd second that.

pygame will give you a window you can draw on which you can plot the
result of your simulation.

You can draw a few buttons (like play and stop) and detect clicks in
them very easily.

If you want loads of parameters then you'll either need to reach for a
GUI toolkit or roll your own menuing system for pygame (which isn't
that hard).

--
Nick Craig-Wood <(E-Mail Removed)> -- http://www.craig-wood.com/nick
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Back Annotation simulations rajan VHDL 4 08-10-2004 07:57 AM
"Real" Simulations? Jay Davis VHDL 8 11-25-2003 05:37 PM
Lab simulations problem Alejandro Pazos Microsoft Certification 0 09-03-2003 02:08 PM
Long simulations Pedro Claro VHDL 0 08-13-2003 02:59 PM
DSP simulations Willem Oosthuizen VHDL 1 06-25-2003 03:37 PM



Advertisments