Re: [Tutor] Recreating the help module

2012-07-25 Thread Peter Otten
M Nickey wrote: Hey all, I'm trying to recreate the 'help' on various modules that are available. So far, I have a bit of code and it seems to be working for the most part. I can get the modules available but I also want to be able to print the information that is available for each

Re: [Tutor] measuring the start up time of an event-driven program

2012-07-25 Thread Albert-Jan Roskam
Albert-Jan Roskam, 24.07.2012 11:18: I would like to test how long it takes for two versions of the same program to start up and be ready to receive commands. The program is SPSS version-very-old vs. SPSS version-latest. Normally I'd just fire the program up in a subprocess and measure the

[Tutor] Getting name of Widget for event.widget?

2012-07-25 Thread Leam Hall
Note that this is for an on-line class so I'd appreciate pointers to what I need to read or think about more than the answer out right. Using Python 3 on Linux, is there a way to get the name of a widget instead of numeric representations in event.widget? What I tried were a few variations

Re: [Tutor] where is my MySQL database

2012-07-25 Thread Joel Goldstick
On Tue, Jul 24, 2012 at 9:58 PM, Michael Janßen mi.jans...@gmail.com wrote: On 25 July 2012 00:51, Zhenzhen zhenzhen...@gmail.com wrote: hi, I'm working on setting up my database for django by editing the following file: mysite/settings.py for the field name, I am suppose to put down the

[Tutor] What on earth is happening here ???

2012-07-25 Thread Lipska TheCat
Pythoners I have a class The point of this class is to provide an uncluttered interface to Document Creation from xml.dom.minidom import getDOMImplementation class NpDOMDocumentFactory:         A DOM Document Factory convenience class          # make these private by convention    

Re: [Tutor] What on earth is happening here ???

2012-07-25 Thread Jerry Hill
On Wed, Jul 25, 2012 at 11:11 AM, Lipska TheCat lipskathe...@yahoo.co.uk wrote: def getDOMDocument(self): This defines the method getDOMDocument(). def getDOMDocument(self, namespaceUri=__defaultNamespaceUri): This defines the method getDOMDocument(), replacing the previous

Re: [Tutor] Getting name of Widget for event.widget?

2012-07-25 Thread Peter Otten
Leam Hall wrote: Note that this is for an on-line class so I'd appreciate pointers to what I need to read or think about more than the answer out right. Using Python 3 on Linux, is there a way to get the name of a widget instead of numeric representations in event.widget? What I tried

Re: [Tutor] What on earth is happening here ???

2012-07-25 Thread Prasad, Ramit
I have a class The point of this class is to provide an uncluttered interface to Document Creation from xml.dom.minidom import getDOMImplementation class NpDOMDocumentFactory: A DOM Document Factory convenience class # make these private by convention

Re: [Tutor] What on earth is happening here ???

2012-07-25 Thread Alan Gauld
On 25/07/12 16:11, Lipska TheCat wrote: from xml.dom.minidom import getDOMImplementation I'd probably start by saying that I suspect elemtTree will be easier to use than minidom, but if you must class NpDOMDocumentFactory: # make these private by convention

Re: [Tutor] What on earth is happening here ???

2012-07-25 Thread Steven D'Aprano
Alan Gauld wrote: def getDOMDocument(self): def getDOMDocument(self, namespaceUri=__defaultNamespaceUri): def getDOMDocument(self, namespaceUri=__defaultNamespaceUri, qualifiedName=__defaultQualifiedName): def getDOMDocument(self,

[Tutor] Private attributes [was Re: What on earth is happening here ???]

2012-07-25 Thread Steven D'Aprano
Prasad, Ramit wrote: Trying to make things private is a throwback to Java. In Python the tendency is to just leave everything public. And private is with one underbar/underscore. Yes, and no. It is true that Python encourages a consenting adults philosophy, where private attributes are not