Re: [Tutor] C# style multi-line textbox in Python

2007-06-02 Thread Alan Gauld
"Darren Williams" <[EMAIL PROTECTED]> wrote > I'm completely new when it comes to Python so forgive > me for asking a potentially very simple question. > Can C# style multi-line textboxes for user-input > be scripted in Python? Yes, but as part of a GUI. > Are there any other attributes that I c

[Tutor] C# style multi-line textbox in Python

2007-06-02 Thread Darren Williams
Hi all, I'm completely new when it comes to Python so forgive me for asking a potentially very simple question. Can C# style multi-line textboxes for user-input be scripted in Python? Are there any other attributes that I can add to either input() or raw_input()?__

[Tutor] Problem with python2.5 and pyGres-3.8.1

2007-06-02 Thread Ezra Taylor
All: I'm trying to get python2.5 and PyGres-3.8.1 working. I'm getting the following error when doing an import. I'm not sure what I have to do to openssl. I've seen this linger around on the web but no one suggested a solution. Your help will be much appreciated. Ezra ActivePython 2.5

Re: [Tutor] Running two different python applications from one module

2007-06-02 Thread Norman Khine
Thank you for your reply. I have just found your book, it looks very good and I will look at sub processes examples. What I am trying to do is that I want to create a python module within itools http://www.ikaaro.org/itools CMS that creates an object based on a form input that has a post method i

Re: [Tutor] Running two different python applications from one module

2007-06-02 Thread Alan Gauld
"Norman Khine" <[EMAIL PROTECTED]> wrote > I would like to write a script using python 2.5 to interact with a > Zope > application that is running on python 2.4.3 > > Can I call the python 2.4.3 module from within the python 2.5, if so > how? You can generally import modules from older version

Re: [Tutor] Design Question

2007-06-02 Thread David Hamilton
Thanks for the guidance! I'm glad to know my design wasn't wildly off-base. I will most likely take your advice about using pickle to implement persistence. As for old style vs new style constructors...I'm still a little fuzzy on the details, but I've done enough reading to see that new style

Re: [Tutor] Calculator research

2007-06-02 Thread Alan Gauld
"Adam Urbas" <[EMAIL PROTECTED]> wrote > Ok, this is my research for a better calculator. I want to make a > calculator that is much less lame than the one that comes standard Thats a good beginners project. But you should go through one of the tutorials first because you are still asking a lot

[Tutor] Running two different python applications from one module

2007-06-02 Thread Norman Khine
Hello, I would like to write a script using python 2.5 to interact with a Zope application that is running on python 2.4.3 Can I call the python 2.4.3 module from within the python 2.5, if so how? For example, my script is in /home/me/python2.4/create.py and within my /home/me/python2.5/servers.

Re: [Tutor] PyCrust IDE/Shell

2007-06-02 Thread Alan Gauld
"Switanek, Nick" <[EMAIL PROTECTED]> wrote > Thanks for the path. I find a .py, .pyc, and an icon file name > PyCrust, > but no .pyw. > > Any ideas? Sorry, I think I did this bit myself. Just rename the .py to .pyw The effect is to prevent a Windows console window starting in the background.

Re: [Tutor] Calculator research

2007-06-02 Thread Andrei
Hi Adam, > Ok, this is my research for a better calculator. I want to make a > calculator that is much less lame than the one that comes standard > with windows. If anyone has any ideas for how to start or some things A very simple option would be to just call eval() - you get the full power o

Re: [Tutor] PyCrust IDE/Shell

2007-06-02 Thread ALAN GAULD
> I agree that pycrust is faster in terms of autocomplete. However, > I love being able to to just hit f5 to run my code in the shell while > in the Python IDLE environment. I wonder if this is possible with pycrust . . > . Not PyCrust itself because it is just a shell. But PyA LaMode is the eq

Re: [Tutor] [Fwd: Re: trouble with "if"]

2007-06-02 Thread Luke Paireepinart
Adam Urbas wrote: > Sorry about all that trouble for you Alan, after I posted that, I > reformatted my code a bit and updated it to do the defining and then > the calling, like you said. The only problem I had, and I was > probably doing something wrong, was that I would do: > > choice() > if choi