Re: GUI issues in Python

2006-04-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote:

 Hi,
 
 I want to create a GUI where a user can select drag and drop kind of
 boxes, circles and make connections between them.
 
 This is basically for depicting states and dependencies. I am writing a
 program where I let the user input states and dependencies in a certain
 domain. Based on input given by user in the GUI, I grab it and run my
 algorithm to generate the output.
 
 I am wondering if there is any library like that in Python, or if
 anybody of you has done something similar in past, could you post some
 pointers.

tkinter. Amongst a bazillion others - but this is included, and the
canvas-widget actually very useful for your purpose.

Regards,

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


Re: GUI issues in Python

2006-04-06 Thread diffuser78
My question basically revolves around... that I dont want to draw
circles and boxes for drawing purposes.

I want the end user to be able to draw the GUI boxes and circles and
makes connection to depict states and dependencies. So its a little
unconventional and more like a SIMULATION TOOL.

I am pretty sure Python must have something like this. Any idea how to
go about it.

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


Re: GUI issues in Python

2006-04-06 Thread Daniel Dittmar
[EMAIL PROTECTED] wrote:
 I want to create a GUI where a user can select drag and drop kind of
 boxes, circles and make connections between them.
 
 This is basically for depicting states and dependencies. I am writing a
 program where I let the user input states and dependencies in a certain
 domain. Based on input given by user in the GUI, I grab it and run my
 algorithm to generate the output.
 
 I am wondering if there is any library like that in Python, or if
 anybody of you has done something similar in past, could you post some
 pointers.

wxPython has an interface to the OGL library (screenshot: 
http://www.wxpython.org/ss/wxPythonOSX.png, features: 
http://www.wxwindows.org/contrib/ogl/ogl.htm)

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


Re: GUI issues in Python

2006-04-06 Thread diffuser78
Thanks Daniel, I really think that this should be the solution to my
problem.

A quick Question...is wxPython Operating System dependent or it can be
used with anu OS like Linux, Windows and Mac ?

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


Re: GUI issues in Python

2006-04-06 Thread Grant Edwards
On 2006-04-06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Thanks Daniel, I really think that this should be the solution to my
 problem.

 A quick Question...is wxPython Operating System dependent or it can be
 used with anu OS like Linux, Windows and Mac ?

http://wxwidgets.org/

-- 
Grant Edwards   grante Yow!  Kids, don't gross me
  at   off... Adventures with
   visi.comMENTAL HYGIENE can be
   carried too FAR!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI issues in Python

2006-04-06 Thread Daniel Dittmar
[EMAIL PROTECTED] wrote:
 Thanks Daniel, I really think that this should be the solution to my
 problem.
 
 A quick Question...is wxPython Operating System dependent or it can be
 used with anu OS like Linux, Windows and Mac ?
 

see http://www.wxpython.org/download.php#binaries

Linux and Win32 have been supported for a while. And the screenshot in 
my first reply was from Mac OS X, so OGL seems to be supported there too.

The wxPython demo application has an OGL example, so you can check that 
pretty quickly.

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


Re: GUI issues in Python

2006-04-06 Thread Thomas Jollans
[EMAIL PROTECTED] wrote:

 My question basically revolves around... that I dont want to draw
 circles and boxes for drawing purposes.
 
 I want the end user to be able to draw the GUI boxes and circles and
 makes connection to depict states and dependencies. So its a little
 unconventional and more like a SIMULATION TOOL.
 
 I am pretty sure Python must have something like this. Any idea how to
 go about it.

a tkinter canvas can be hooked up via events with your simulation
algorithm easily.

So, user clicks some point - the program/simulation gets the coordinates
and action - does something - draws something - ...



-- 
Thomas Jollans - http://jollybox.de/
GNU/Linux - freedom, functionality, power - what more do you want ?
When in doubt, follow the penguins.
-- 
http://mail.python.org/mailman/listinfo/python-list