Re: [Tutor] Misunderstanding the Entry Widget

2009-03-07 Thread Wayne Watson
Title: Signature.html Another thought occurred to me about this situation. Suppose I have a dialog with two Entry objects in a dialog object called TwoEntries:     entry1 = Entry(master, width=10).grid(row=4, column=1)     entry2 = Entry(master, width=10).grid(row=5, column=1)   and I do not u

Re: [Tutor] Misunderstanding the Entry Widget

2009-03-07 Thread Wayne Watson
Title: Signature.html I have no idea of the history of these variables, but they have very limited descriptions and examples. Maybe someone like Grayson goes into detail on them. Looking at the program I'm concerned about, it almost looks like the use is a learned response to dealing with the w

Re: [Tutor] could someone explain why this happens to me.

2009-03-07 Thread Sander Sweers
2009/3/7 Alan Gauld : >> mycopy = original[:] > > Returns a slice of the original list. In this case it so happens > the slice is the full list. > >> mycopy = list(original) > > Use the list type constructor to make a list out of its argument. > It just so happens the argument in this case is a lis

Re: [Tutor] could someone explain why this happens to me.

2009-03-07 Thread عماد نوفل
2009/3/7 Alan Gauld > > "Emad Nawfal (عماد نوفل)" wrote > > As a linguist, I would love to know what the difference between these >> things are: >> > > The differences are the same whether you are a linguist or not :-) > (and yes I know my reading is incorrect grammaticallly but I couldn't > re

Re: [Tutor] could someone explain why this happens to me.

2009-03-07 Thread Alan Gauld
"Emad Nawfal (عماد نوفل)" wrote As a linguist, I would love to know what the difference between these things are: The differences are the same whether you are a linguist or not :-) (and yes I know my reading is incorrect grammaticallly but I couldn't resist it!) mycopy = original[:] Re

Re: [Tutor] could someone explain why this happens to me.

2009-03-07 Thread عماد نوفل
On Sat, Mar 7, 2009 at 2:36 PM, Kapsicum wrote: > > > On Sun, Mar 8, 2009 at 12:39 AM, sphennings W. wrote: > >> When I enter the following code into IDLE do both lists have the same >> value? >> How would I manipulate both lists separately? >> >> >>> List1=[1,2,3] >> >>> List2=List1 >> >>> List

Re: [Tutor] could someone explain why this happens to me.

2009-03-07 Thread Kapsicum
On Sun, Mar 8, 2009 at 12:39 AM, sphennings W. wrote: > When I enter the following code into IDLE do both lists have the same > value? > How would I manipulate both lists separately? > > >>> List1=[1,2,3] > >>> List2=List1 > >>> List2.reverse() > >>> print(List2) > [3, 2, 1] > >>> print(List1) >

Re: [Tutor] could someone explain why this happens to me.

2009-03-07 Thread Emile van Sebille
sphennings W. wrote: When I enter the following code into IDLE do both lists have the same value? They way you've done it, both names List1 and List2 refer/point to the same list. Changes to one affect both. How would I manipulate both lists separately? Assign them separately or use a c

Re: [Tutor] could someone explain why this happens to me.

2009-03-07 Thread عماد نوفل
On Sat, Mar 7, 2009 at 2:09 PM, sphennings W. wrote: > When I enter the following code into IDLE do both lists have the same > value? > How would I manipulate both lists separately? > > >>> List1=[1,2,3] > >>> List2=List1 > >>> List2.reverse() > >>> print(List2) > [3, 2, 1] > >>> print(List1) >

[Tutor] could someone explain why this happens to me.

2009-03-07 Thread sphennings W.
When I enter the following code into IDLE do both lists have the same value? How would I manipulate both lists separately? >>> List1=[1,2,3] >>> List2=List1 >>> List2.reverse() >>> print(List2) [3, 2, 1] >>> print(List1) [3, 2, 1] >>> List2.append(0) >>> print(List2) [3, 2, 1, 0] >>> print(List1)

[Tutor] Pyusb: get data via USB sent from mouse

2009-03-07 Thread andré palma
Hi folks, I'm new on pyusb programming and to learn how to get data i'm trying to get data sent from my mouse. I've download a program called usbview( http://www.kroah.com/linux/usb/ ) to display the device descriptors of any USB device pluged to my computer. I made a peace of code tha

Re: [Tutor] print problem python

2009-03-07 Thread Kent Johnson
On Sat, Mar 7, 2009 at 7:51 AM, W W wrote: > On Sat, Mar 7, 2009 at 3:11 AM, Alan Gauld wrote: >> Python 3 has a lot of >> changes and most of the beginners material hasn't caught >> up yet. It will be easier to get answers to your questions if >> you stick with v2.6 and then when comfortable wit

Re: [Tutor] print problem python

2009-03-07 Thread W W
On Sat, Mar 7, 2009 at 3:11 AM, Alan Gauld wrote: > Python 3 has a lot of > changes and most of the beginners material hasn't caught > up yet. It will be easier to get answers to your questions if > you stick with v2.6 and then when comfortable with that move > to v3 aand learn about the differenc

Re: [Tutor] glob in order of the file numbers

2009-03-07 Thread عماد نوفل
On Fri, Mar 6, 2009 at 11:34 PM, Kent Johnson wrote: > On Fri, Mar 6, 2009 at 9:52 PM, Emad Nawfal (عماد نوفل) > wrote: > > Hi Tutors, > > suppose I have four files in the current directory: 1.temp, 2.temp, > 3.temp, > > and 4.temp. I want to use glob, or anything else, to print the contents > o

Re: [Tutor] print problem python

2009-03-07 Thread Alan Gauld
"mustafa akkoc" wrote i start learning pyton language i want to print some thing but when i type : print "hello world" but it give an error like this SyntaxError: invalid syntax (, line 1) i am using python shell version 3.0.1 If you are new to programming as well as Pyton I recommend yo

Re: [Tutor] Misunderstanding the Entry Widget

2009-03-07 Thread Alan Gauld
"Wayne Watson" wrote > Can you easily construct a simple example where they are absolutely necessary, or at least provide a situation where they are necessary? I don't think you can. They are a convenience feature not a necessity. But the same can be said of standard dialogs, message boxe