Re: [Tutor] directory within directory

2011-08-17 Thread Peter Otten
questions anon wrote: > Thank you, that does create the directories in the new place but when I > process the data it does not put the outputs in the correct directory they > all end up in the last directory created. > Below is the code of what I am trying to do. > Any feedback will be greatly app

Re: [Tutor] Printing in the same place

2011-08-17 Thread Peter Otten
brandon w wrote: > I am trying to print in the same place to make a clock in a tkinter > window. I will loop the following code to update the time. > > This seems to work but it is not printing in the same place: > > #!/usr/bin/python > #Python 2.6.6 > > import time > > for t in range(5): >

Re: [Tutor] Printing in the same place

2011-08-17 Thread Alan Gauld
On 17/08/11 04:05, brandon w wrote: I am trying to print in the same place to make a clock in a tkinter window. I will loop the following code to update the time. This is not a tkinter program so its completely irrelevant to your stated aim. In tkinter how print works is of no importance. You w

Re: [Tutor] Message: pygobject_register_sinkfunc is deprecated (GtkWindow)

2011-08-17 Thread Timo
On 16-08-11 20:46, Susana Iraiis Delgado Rodriguez wrote: Hello List! I just started to use PyGTK and Glade to create graphical interfaces, my python interpreter version is 2.6.6; I also install the GTK2 Runtime enviroment and Glade 3.6.6. I also installed in my computer pycairo-1.8.10.win32-

Re: [Tutor] Printing in the same place

2011-08-17 Thread Alan Gauld
On 17/08/11 09:02, Alan Gauld wrote: On 17/08/11 04:05, brandon w wrote: > I am trying to print in the same place to make a clock in a tkinter > window. I will loop the following code to update the time. This is not a tkinter program so its completely irrelevant to your stated aim. In tkinter how

[Tutor] Using Python to send signals to the USB port

2011-08-17 Thread Jaidev Deshpande
Hi Is there some way I can use Python to send data through a USB port and control the data in real-time? (For instance, I can make a sinusoidal wave of a given specification, and visualize it using NumPy / Matplotlib. How can I send the digitized form of this array through a USB port, and then co

Re: [Tutor] Using Python to send signals to the USB port

2011-08-17 Thread Christian Witts
On 2011/08/17 03:28 PM, Jaidev Deshpande wrote: Hi Is there some way I can use Python to send data through a USB port and control the data in real-time? (For instance, I can make a sinusoidal wave of a given specification, and visualize it using NumPy / Matplotlib. How can I send the digiti

Re: [Tutor] Message: pygobject_register_sinkfunc is deprecated (GtkWindow)

2011-08-17 Thread Susana Iraiis Delgado Rodriguez
Hello Timo!! Thank you so much for your help! I'll do it 2011/8/17 Timo > On 16-08-11 20:46, Susana Iraiis Delgado Rodriguez wrote: > >> Hello List! >> >> I just started to use PyGTK and Glade to create graphical interfaces, my >> python interpreter version is 2.6.6; I also install the GTK2 Runt

Re: [Tutor] Using Python to send signals to the USB port

2011-08-17 Thread Alan Gauld
On 17/08/11 14:28, Jaidev Deshpande wrote: Hi > Is there some way I can use Python to send data through a USB port and > control the data in real-time? Yes, but its not what I'd call easy! > How can I send the digitized form of this array through a USB port, > and then convert it back into

Re: [Tutor] Using Python to send signals to the USB port

2011-08-17 Thread ALAN GAULD
> Well, my application requires roughly 20 MHz ( :O ... I know )... > However, the DACs are not a problem, I can afford them. OK, Well to digitize a 20M signal you need to sample it at 40M rate. Then just send the digital levels out through the usb port one bit at a time which will require arou

Re: [Tutor] Printing in the same place

2011-08-17 Thread brandon w
On 08/17/2011 04:02 AM, Alan Gauld wrote: On 17/08/11 04:05, brandon w wrote: I am trying to print in the same place to make a clock in a tkinter window. I will loop the following code to update the time. This is not a tkinter program so its completely irrelevant to your stated aim. In tkinter

Re: [Tutor] Printing in the same place

2011-08-17 Thread Alan Gauld
On 17/08/11 23:20, brandon w wrote: I guess I will have to find another way to create a digital clock in a tkinter window. The point about a GUI is that you display widgets that have text on them. It could be a Label, or a Button or a Text box or even a Canvas. Then to change the text you sim