Re: [Tutor] Runing a Python program

2006-05-13 Thread Evans Anyokwu
There's a simple way you can add your directory to the execution path. try this sys.path.append(r'C:\python24\myPythonFiles') now, you can import your file with the import command import yourFile Note: This is only a temporary solution, when you close the interpreter, it will need to

Re: [Tutor] Runing a Python program

2006-05-13 Thread Kent Johnson
Henry Dominik wrote: Hello people, As a new python programmer, I created a directory in 'C:\python24\myPythonFiles', and added a simple python under the myPythonFiles directory; but when I tried running it on the Python Shell, I got the following error. import myPythonFiles.readOut

Re: [Tutor] Runing a Python program

2006-05-13 Thread Alan Gauld
Hi Henry, As a new python programmer, I created a directory in 'C:\python24\myPythonFiles', and added a simple python under the myPythonFiles directory; but when I tried running it on the Python Shell, I got the following error. import myPythonFiles.readOut ImportError: No module named

[Tutor] Database topic now fixed

2006-05-13 Thread Alan Gauld
The mistakes in my databae topic have now been rectified. I have no idea how I managed to post the file without testing that section of code. And unfortunately it's one of the areas where SqlLite SQL syntax varies from the Oracle syntax that I'm most familiar with. But that's only a partial

Re: [Tutor] Runing a Python program

2006-05-13 Thread w chun
On my computer (Win2K) Python puts the current working directory in sys.path. (I'm not sure this happens on Linux.) yes it does, on any unix-flavored system (Linux, FreeBSD, MacOS X, Solaris, etc.). since we're on the topic, there is another attribute in the sys module, sys.modules that shows

Re: [Tutor] Database topic now fixed

2006-05-13 Thread Bob Gailer
Alan Gauld wrote: The mistakes in my databae topic have now been rectified. I have no idea how I managed to post the file without testing that section of code. And unfortunately it's one of the areas where SqlLite SQL syntax varies from the Oracle syntax that I'm most familiar with. But

Re: [Tutor] Database topic now fixed

2006-05-13 Thread Alan Gauld
Thanks Bob, Feedback is always appreciated, its how the tutor improves. 1 - people familiar with other databases might be puzzled by the lack of column datatypes. I'd mention that sqlite allows but does not require types at the first introduction of CREATE TABLE,. Fair point, although by

[Tutor] Spanish Tutorials

2006-05-13 Thread Carlos Daniel Ruvalcaba Valenzuela
Hello! At my university we are creating a Wiki with information about the careers and articles, one of the most important section is the Systems Engineering, which sports a Python section :) Spanish Python Tutorials at: http://wikitec.itnogales.edu.mx/index.php/Python Saludos!

[Tutor] Problems with Treeview

2006-05-13 Thread John CORRY
Hi, I am having problems selecting a row in treeview. I am using Pythoncard, Glade 2 and Python 2.4. I am using the following code:- combo3 = self.wTree.get_widget(treeview1)

[Tutor] How do I create the equivalent of a Java class in Python?

2006-05-13 Thread Nathan Pinno
Hey all, How do I create the equivalent of a Java class in Python? I've been looking at the reference, and it's been confusing to me at least. Thanks, Nathan Pinno ___ Tutor maillist - Tutor@python.org

Re: [Tutor] Database topic now fixed

2006-05-13 Thread Alan Gauld
Some observations: These have now all been addressed as previously discussed. I've also added a section at the end covering the use of execute() to insert parameters rather than relying on format strings since the latter can be a security risk. Hopefully its now complete! :-) Alan Gauld

Re: [Tutor] How do I create the equivalent of a Java class in Python?

2006-05-13 Thread w chun
How do I create the equivalent of a Java class in Python? I've been looking at the reference, and it's been confusing to me at least. can you clarify what you are looking for? do you want to create a class using Python, create the equivalent of a Java class using Python via Jython, accessing a