Re: [Tutor] Is it possible to tell, from which class an method was inherited from

2011-01-20 Thread Peter Otten
Jojo Mwebaze wrote: > Thanks guys for the responses, > > inspect.classify_class_attrs(klass) > > does the magic Argh, undocumented functions. How did you find that gem? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription opt

Re: [Tutor] How to plot graph?

2011-01-20 Thread Walter Prins
Hi Tee, On 20 January 2011 03:48, tee chwee liong wrote: > actually i just want to plot a simple x and y graph. any suggestion? > how about using excel to plot? any sample code that i can follow to: > 1) launch excel > 2) read x-y from a text file > 3) plot graph > Try this page: http://www.bl

[Tutor] Tkinter in classes...why?

2011-01-20 Thread Elwin Estle
I have some experience in Tcl\Tk, and so far, Tkinter is striking me as harder to use that Tk in it's "native" environment. I am attempting to re-write a program I originally did in Tcl\Tk in Python. I managed to get a GUI done using just Tkinter, and, after an initial struggle with the Tkinte

Re: [Tutor] Tkinter in classes...why?

2011-01-20 Thread David Hutto
On Thu, Jan 20, 2011 at 2:43 PM, Elwin Estle wrote: > I have some experience in Tcl\Tk, and so far, Tkinter is striking me as > harder to use that Tk in it's "native" environment. > > I am attempting to re-write a program I originally did in Tcl\Tk in Python.   > I managed to get a GUI done using

[Tutor] If I use this code will it delete my program fileS?

2011-01-20 Thread walter weston
I have a question I know the shutil module deletes directories, If I use this code will it delete all of my program files? import shutil shutil.rmtree('C:\Program Files (x86)') ___ Tutor maillist - Tutor@pyth

Re: [Tutor] If I use this code will it delete my program fileS?

2011-01-20 Thread Wayne Werner
On Thu, Jan 20, 2011 at 9:32 PM, walter weston wrote: > I have a question I know the shutil module deletes directories, If I use > this code will it delete all of my program files? > > import shutil > shutil.rmtree('C:\Program Files (x86)') > Assuming you have the proper permissions, yes. An e

Re: [Tutor] Tkinter in classes...why?

2011-01-20 Thread Liam Clarke-Hutchinson
Your signature is obscenely large David. > But, the tutorials I have encountered all mentioned that it is supposed to be a good idea to put one's GUI stuff in a class, then create an instance of the class (which I don't entirely understand, since I thought the whole "class" thing was for stuff tha

[Tutor] not understanding a recursion example

2011-01-20 Thread Bill Allen
I am not understanding the following code (I did not write it). It demonstrates walking a tree-like data structure using recursion. It does run and produces reasonable output. I particularly do not understand the "traverse.level" statements. Can anyone give me an idea how this is working and th