Re: Why is w9xpopen.exe bundled with Python 2.7 on Windows?

2014-08-30 Thread ps16thypresenceisfullnessofjoy
Thanks, that's interesting. It seems odd to me that w9xpopen.exe (because of its name) is still used on Windows 7, so I can see why it was removed in Python 3.4. Since I don't use the popen function at all in my application, I think it should be OK to exclude w9xpopen.exe in my py2exe setup scri

Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
I've started to learn to use tkinter but can't seem to rotate images. Here is a Python 3.4 program to illustrate the problem. Anyone spot why the for loop doesn't seem to want to display a sucssession of images please? Thanks. import sys from tkinter import * import random from time import sleep

PySide 1.2.2 and Python 3.4.1 - "native Qt signal is not callable"

2014-08-30 Thread Juan Christian
Hello everyone, I have a question regarding PySide 1.2.2 and Python 3.4.1 I have this code that I made following a Python tutorial , mine is a bit different because the tutorial is a bit old, and I'm trying to use Python n

I have tried and errored a reasonable amount of times

2014-08-30 Thread Seymore4Head
I really tried to get this without asking for help. mylist = ["The", "earth", "Revolves", "around", "Sun"] print (mylist) for e in mylist: # one of these two choices should print something. Since neither does, I am missing something subtle. if e[0].isupper == False: print ("False

Re: Why is w9xpopen.exe bundled with Python 2.7 on Windows?

2014-08-30 Thread Terry Reedy
On 8/30/2014 10:45 AM, ps16thypresenceisfullnessof...@gmail.com wrote: Thanks, that's interesting. It seems odd to me that w9xpopen.exe (because of its name) is still used on Windows 7, Yes, the name is confusing. It is not about running on Windows 9X, but about running popen on later systems

Re: I have tried and errored a reasonable amount of times

2014-08-30 Thread Tim Chase
On 2014-08-30 14:27, Seymore4Head wrote: > I really tried to get this without asking for help. > > mylist = ["The", "earth", "Revolves", "around", "Sun"] > print (mylist) > for e in mylist: > > # one of these two choices should print something. Since neither > does, I am missing something subtl

Re: I have tried and errored a reasonable amount of times

2014-08-30 Thread Seymore4Head
On Sat, 30 Aug 2014 13:48:09 -0500, Tim Chase wrote: >On 2014-08-30 14:27, Seymore4Head wrote: >> I really tried to get this without asking for help. >> >> mylist = ["The", "earth", "Revolves", "around", "Sun"] >> print (mylist) >> for e in mylist: >> >> # one of these two choices should print

Re: PySide 1.2.2 and Python 3.4.1 - "native Qt signal is not callable"

2014-08-30 Thread MRAB
On 2014-08-30 14:35, Juan Christian wrote: Hello everyone, I have a question regarding PySide 1.2.2 and Python 3.4.1 I have this code that I made following a Python tutorial , mine is a bit different because the tutorial

Re: PySide 1.2.2 and Python 3.4.1 - "native Qt signal is not callable"

2014-08-30 Thread Juan Christian
Yes, indeed, my code was a mess! I did a clear code here (http://pastebin.com/XsVLSVky) that's fully working, thanks! 2014-08-30 16:05 GMT-03:00 MRAB : > On 2014-08-30 14:35, Juan Christian wrote: > >> Hello everyone, I have a question regarding PySide 1.2.2 and Python 3.4.1 >> >> I have this c

Re: Sequencing images using tkinter?

2014-08-30 Thread Terry Reedy
On 8/30/2014 11:54 AM, theteacher.i...@gmail.com wrote: I've started to learn to use tkinter but can't seem to rotate images. Here is a Python 3.4 program to illustrate the problem. > Anyone spot why the for loop doesn't seem to want to display > a sucssession of images please? Thanks. import

Re: Sequencing images using tkinter?

2014-08-30 Thread Peter Otten
theteacher.i...@gmail.com wrote: > I've started to learn to use tkinter but can't seem to rotate images. > > Here is a Python 3.4 program to illustrate the problem. Anyone spot why > the for loop doesn't seem to want to display a sucssession of images > please? Thanks. GUI programs are different

Re: Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
Peter - Thanks! I've had a play around and followed your advice and have something that should take me on to the next step! This is what I have so far and it works, Thanks. from tkinter import * from tkinter import ttk import random root = Tk() root.title("Messing about") def next_image():

Error reading from 'urllib.request' and iterating over lines

2014-08-30 Thread Juan Christian
My code: http://pastebin.com/CBgVvT4n Line 25 returns the text correctly [1], but it seems not being parsed to line 27-28 correctly. This is just a training program that I'm doing following some books/tutorials/docs, nothing special. [1] Output from line 25: http://pastebin.com/HSbAtDHQ Python 3

Re: I have tried and errored a reasonable amount of times

2014-08-30 Thread Ned Batchelder
On 8/30/14 2:50 PM, Seymore4Head wrote: On Sat, 30 Aug 2014 13:48:09 -0500, Tim Chase wrote: On 2014-08-30 14:27, Seymore4Head wrote: I really tried to get this without asking for help. mylist = ["The", "earth", "Revolves", "around", "Sun"] print (mylist) for e in mylist: # one of these t

Re: Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
Although getting next_image to run for e.g. 10 times in a for loop is still something I can't get to work. It only displays one image. -- https://mail.python.org/mailman/listinfo/python-list

Re: I have tried and errored a reasonable amount of times

2014-08-30 Thread Seymore4Head
On Sat, 30 Aug 2014 16:20:56 -0400, Ned Batchelder wrote: >On 8/30/14 2:50 PM, Seymore4Head wrote: >> On Sat, 30 Aug 2014 13:48:09 -0500, Tim Chase >> wrote: >> >>> On 2014-08-30 14:27, Seymore4Head wrote: I really tried to get this without asking for help. mylist = ["The", "earth

Re: Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
How do you exit from this function? def next_image(): myLabel.config(image=random.choice(monster_images)) # tell tkinter to invoke next_image() again after 200 miliseconds root.after(200, next_image) -- https://mail.python.org/mailman/listinfo/python-list

Re: Sequencing images using tkinter?

2014-08-30 Thread Albert Visser
On Sat, 30 Aug 2014 22:27:01 +0200, wrote: Although getting next_image to run for e.g. 10 times in a for loop is still something I can't get to work. It only displays one image. I think this is because you do all your processing befoe starting the event loop (myGui.mainloop() ). A better

Re: Sequencing images using tkinter?

2014-08-30 Thread Peter Otten
theteacher.i...@gmail.com wrote: > How do you exit from this function? > > def next_image(): > myLabel.config(image=random.choice(monster_images)) > # tell tkinter to invoke next_image() again after 200 miliseconds You misunderstand. The problem with the function is not that it doesn't

Re: I have tried and errored a reasonable amount of times

2014-08-30 Thread Mark Lawrence
On 30/08/2014 19:48, Tim Chase wrote: On 2014-08-30 14:27, Seymore4Head wrote: I really tried to get this without asking for help. mylist = ["The", "earth", "Revolves", "around", "Sun"] print (mylist) for e in mylist: # one of these two choices should print something. Since neither does, I

Re: Error reading from 'urllib.request' and iterating over lines

2014-08-30 Thread MRAB
On 2014-08-30 21:16, Juan Christian wrote: My code: http://pastebin.com/CBgVvT4n Line 25 returns the text correctly [1], but it seems not being parsed to line 27-28 correctly. This is just a training program that I'm doing following some books/tutorials/docs, nothing special. [1] Output from li

Re: I have tried and errored a reasonable amount of times

2014-08-30 Thread Seymore4Head
On Sat, 30 Aug 2014 22:21:40 +0100, Mark Lawrence wrote: >On 30/08/2014 19:48, Tim Chase wrote: >> On 2014-08-30 14:27, Seymore4Head wrote: >>> I really tried to get this without asking for help. >>> >>> mylist = ["The", "earth", "Revolves", "around", "Sun"] >>> print (mylist) >>> for e in mylist

Re: I have tried and errored a reasonable amount of times

2014-08-30 Thread Mark Lawrence
On 30/08/2014 22:48, Seymore4Head wrote: On Sat, 30 Aug 2014 22:21:40 +0100, Mark Lawrence wrote: On 30/08/2014 19:48, Tim Chase wrote: On 2014-08-30 14:27, Seymore4Head wrote: I really tried to get this without asking for help. mylist = ["The", "earth", "Revolves", "around", "Sun"] print (

Re: I have tried and errored a reasonable amount of times

2014-08-30 Thread Cameron Simpson
On 30Aug2014 17:48, Seymore4Head wrote: I have been told that one is a method and the other calls a method. I still have to learn exactly what that means. I'm getting there. A method is, essentially, a function. Observe: def my_func(x): print(9) my_func is just the name of the functi

Raspberry pi, python and robotics

2014-08-30 Thread Nicholas Cannon
I really enjoy engineering at school and we make like fighting robots and stuff(simple stuff of course) and i really enjoy it. I have got a raspberry pi and a decent understanding of python and i want to do make stuff like RC cars and drones and stuff. Also I like electronics. Is there any good