re: Where mathematics comes from

Must I use IDLE? Can't I use PyCrust?
PyCrust is an interactive shell. PyGeo is not designed to work fully from the interactive shell. In other words it does not draw progressively, command by command from the shell. As it uses VPython for rendering, and VPython does have this facility it is probable that I could have designed it to do so. It would definitely be an great enhancement to PyGeo. I am waiting patiently for you or Patrick to help me figure out how to do it ;). Art

At 10:01 AM 1/28/2003 -0500, Arthur wrote:
Must I use IDLE? Can't I use PyCrust?
PyCrust is an interactive shell.
PyGeo is not designed to work fully from the interactive shell. In other words it does not draw progressively, command by command from the shell.
As it uses VPython for rendering, and VPython does have this facility it is probable that I could have designed it to do so. It would definitely be an great enhancement to PyGeo.
I am waiting patiently for you or Patrick to help me figure out how to do it ;).
Art
You're saying I need a text editor yes? Gotta write/run whole scripts. For that I have gVim. But any script can be run from the shell, provided the code has a triggering key word, like run() or doit(). I'd like to be able to go something like:
from pygeo.examples import * islamic6.run()
Then you can put that if __name__ = "__main__": run() at the bottom of every script, so that the module will run if passed directly to python on the command line (actually, in XP it'll just run as a standalone word, thanks to file association -- more like unix with its all important pound bash notation). Kirby

On Tuesday 28 January 2003 11:03 am, Kirby Urner wrote:
But any script can be run from the shell, provided the code has a triggering key word, like run() or doit(). I'd like to be able to go something like:
from pygeo.examples import * islamic6.run()
Then you can put that
if __name__ = "__main__": run()
at the bottom of every script, so that the module will run if passed directly to python on the command line (actually, in XP it'll just run as a standalone word, thanks to file association -- more like unix with its all important pound bash notation).
While this is good general advice, I'm not sure it will be enough to allow PyGeo to be usable from PyCrust as I'm not sure the Tkinter and wxPython event loops will get along with each other. -- Patrick K. O'Brien Orbtech http://www.orbtech.com/web/pobrien ----------------------------------------------- "Your source for Python programming expertise." -----------------------------------------------

At 11:53 AM 1/28/2003 -0600, Patrick K. O'Brien wrote:
While this is good general advice, I'm not sure it will be enough to allow PyGeo to be usable from PyCrust as I'm not sure the Tkinter and wxPython event loops will get along with each other.
-- Patrick K. O'Brien
Yes, this is a key question. Do you know for a fact that this experiment will fail? I was hoping wxPython was enough different that it'd sort of "stay out of the way" of the Tk event loop. Maybe not though. Is ActiveState's Pythonwin also incompatible with PyGeo then? In any case, I'll put up with using VPython in a command box Python, if I can avoid installing VPython's separate IDLE, which I don't want (either I use an IDLE bundled with Python itself, or I don't want to use IDLE). Kirby
participants (3)
-
Arthur
-
Kirby Urner
-
Patrick K. O'Brien