Need to modify a Python Gui

2013-06-01 Thread matt . doolittle33
Hi everybody, I have a Python GUI that displays some data in labeled fields. As new data comes in the fields clear and the old data is lost. I need to make a text box in the GUI that will display the cleared data in a scrolling list. I also need this scrolling list to be logged to a file in c

need to print seconds from the epoch including the millisecond

2013-12-26 Thread matt . doolittle33
i am using 2.7. I need to print the time in seconds from the epoch with millisecond precision. i have tried many things but have failed. heres my latest: from time import time, strftime from datetime import datetime, time # write date, time, then seconds from epoch

Re: need to print seconds from the epoch including the millisecond

2013-12-26 Thread matt . doolittle33
On Thursday, December 26, 2013 2:22:10 PM UTC-5, Dan Stromberg wrote: > On Thu, Dec 26, 2013 at 10:32 AM, wrote: > > > i am using 2.7. I need to print the time in seconds from the epoch with > > millisecond precision. i have tried many things but have failed. heres my > > latest: > > > >

Re: need to print seconds from the epoch including the millisecond

2013-12-27 Thread matt . doolittle33
On Thursday, December 26, 2013 8:29:15 PM UTC-5, Roy Smith wrote: > In article <59aa73ac-e06e-4c0e-83a4-147ac42ca...@googlegroups.com>, > > matt.doolittl...@gmail.com wrote: > > > > > > In [1]: import time > > > > In [2]: time.time() > > > > Out[2]: 1388085670.1567955 > > > > > > OK i did

Re: need to print seconds from the epoch including the millisecond

2013-12-27 Thread matt . doolittle33
I pretty much stopped using Windows 4 > > years ago. > I got off the plantation over a year ago and have not looked back. -- https://mail.python.org/mailman/listinfo/python-list

Re: need to print seconds from the epoch including the millisecond

2013-12-27 Thread matt . doolittle33
On Thursday, December 26, 2013 11:54:41 PM UTC-5, Dave Angel wrote: > On Thu, 26 Dec 2013 20:03:34 -0500, Terry Reedy > > wrote: > > > On 12/26/2013 5:48 PM, Dave Angel wrote: > > > > You're probably on Windows, which does time differently. > > > > > With 3.3 and 3.4 on Windows 7, time.tim

Re: need to print seconds from the epoch including the millisecond

2013-12-27 Thread matt . doolittle33
On Friday, December 27, 2013 11:27:58 AM UTC-5, Roy Smith wrote: > In article <0c33b7e4-edc9-4e1e-b919-fec210c92...@googlegroups.com>, > > matt.doolittl...@gmail.com wrote: > > > > > I am on Ubuntu 12.10. I am still working with the 2 decimal places. > > > Sometime ago i had this issue and

Re: need to print seconds from the epoch including the millisecond

2013-12-30 Thread matt . doolittle33
On Friday, December 27, 2013 7:25:42 PM UTC-5, Cameron Simpson wrote: > On 27Dec2013 07:40, matt.doolittl...@gmail.com > wrote: > > > I am on Ubuntu 12.10. I am still working with the 2 decimal > > > places. Sometime ago i had this issue and I forget how i solved it. > > > maybe i used datet

Re: need to print seconds from the epoch including the millisecond

2013-12-30 Thread matt . doolittle33
On Friday, December 27, 2013 1:49:54 PM UTC-5, Ned Batchelder wrote: > On 12/27/13 1:09 PM, matt.doolittl...@gmail.com wrote: > > > On Friday, December 27, 2013 11:27:58 AM UTC-5, Roy Smith wrote: > > >> In article <0c33b7e4-edc9-4e1e-b919-fec210c92...@googlegroups.com>, > > >> > > >> matt.do

Re: need to print seconds from the epoch including the millisecond

2013-12-30 Thread matt . doolittle33
On Monday, December 30, 2013 8:01:21 AM UTC-5, Ned Batchelder wrote: > On 12/30/13 7:50 AM, Ned Batchelder wrote: > > > BTW, I said something very similar in this thread 2.5 days ago: > > > https://mail.python.org/pipermail/python-list/2013-December/663454.html > > > I get the feeling not all me

outputting time in microseconds or milliseconds

2013-08-02 Thread matt . doolittle33
Hey everybody, I am using 2.7 on Ubuntu 12.10. All I need to do is to print time with the microseconds. I have been looking at the docs and trying things for about half a day now with no success. Currently my code looks like this: # write date and time and microseocnds self.

Re: outputting time in microseconds or milliseconds

2013-08-02 Thread matt . doolittle33
so you are saying that self.logfile.write('%s\t'%(str(time( should be: self.logfile.write('%s\t'%(str(time.time( ??? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: outputting time in microseconds or milliseconds

2013-08-02 Thread matt . doolittle33
On Friday, August 2, 2013 8:37:45 AM UTC-4, Skip Montanaro wrote: > Perhaps use datetime? > > > > >>> now = datetime.datetime.now() > > >>> now.isoformat() > > '2013-08-02T07:37:08.430131' > > >>> now.strftime("%f") > > '430131' > > > > Skip Thanks Skip, what i currently i have is:

Re: outputting time in microseconds or milliseconds

2013-08-02 Thread matt . doolittle33
On Friday, August 2, 2013 8:35:13 AM UTC-4, Steven D'Aprano wrote: > On Fri, 02 Aug 2013 03:54:32 -0700, matt.doolittle33 wrote: > > > > > Hey everybody, > > > > > > I am using 2.7 on Ubuntu 12.10. All I need to do is to print time with > > > the microseconds. I have been looking at the do

Re: outputting time in microseconds or milliseconds

2013-08-04 Thread matt . doolittle33
ok so now i import the module like this: from time import strftime, time i made the write statement like this: self.logfile.write('%s\t'%(str(strftime("%Y-%m-%d", self.logfile.write('%s\t'%(str(strftime("%H:%M:%S", self.logfile.write('%s\t'%(str(time( (oh and btw,i kno

Re: outputting time in microseconds or milliseconds

2013-08-07 Thread matt . doolittle33
> > Taking a step back, you're probably better off using datetimes. You'll > > get all this conversion nonsense for free: > i did: from time import strftime, time from datetime import datetime now = datetime.now() self.logfile.write('%s\t'%(strftime("%Y-%m-%d",))) self.logf

Re:

2013-02-15 Thread matt . doolittle33
here is the code in "hier_block2.py": # # Copyright 2006,2007 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundatio

Re:

2013-02-15 Thread matt . doolittle33
oh and the version of python is 2.7.3 THanks in advance! -- http://mail.python.org/mailman/listinfo/python-list

Exception running GNU module "op25_grc.py" : AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback'

2013-02-15 Thread matt . doolittle33
I am using using ubuntu 12.10 i am trying to run a python block, namely OP25, in GNU Radio Companion v3.6.3-35-g4435082f, which uses python version 2.7.3 for some reason although python3.2 is in the lib folder. I run the following trace command in terminal: ~$ python -m trace --count -C . op25_

Re: Exception running GNU module "op25_grc.py" : AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback'

2013-02-16 Thread matt . doolittle33
> > I know nothing about this gnuradio thingie, and you didn't supply a > > website url. I was wondering if the module is even intended to be run > > standalone, but I suppose the if __name__ == "__main__" thing is a clue > > that it's supposed to. > > > > I found the mixture of trace li

Python module import failed error

2013-02-19 Thread matt . doolittle33
Hello all; I am using Ubuntu 12.10 and Python v2.7.3. I am trying to add a directory to the PYTHONPATH. All of the commands I have found on the web have failed. Please help me to add a directory to the PYHONPATH. The file path is Home/home/bin. Thanks in advance. -- http://mail.python.or

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
> > What do you mean by that path? That doesn't look like an Ubuntu/Linux > > path name. Pull up a terminal (Ctrl-Alt-T should do that for you, > > though I haven't used an Ubuntu since 10.10) and see if you can 'ls' > > the path - once you have the real path name (it might start with > > /ho

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
My guess would be /home/matt/bin - note the leading slash. > > > > ChrisA correct. and in the home directory i run export PYTHONPATH=${PYTHONPATH}:/home/matt/bin and have had no luck? am i using the wrong command? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
On Tuesday, February 19, 2013 11:39:14 AM UTC-5, Chris Angelico wrote:> > > What exactly do you mean by "no luck"? More details would be good. > The program i am using (GNU radio companion) that wants to import the modules from the ~/bin folder shows this error: Block - import_0_0_0 - Import(

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
On Tuesday, February 19, 2013 11:44:32 AM UTC-5, Thomas Calmant wrote: > Hi, > > Do you run Python in the same terminal than where you run the export command ? > no i dont. the python program looking for the modules in the ~/bin directory is called GNU radio companion. -- http://mail.python.

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
> What is PYTHONPATH actually set to? You can find out by running python > > interactively, then i dont know. how do i run pythoin interactively? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
Does anyone know why i keep having these double posts? please excuse them; i am a super newbie to this forum (and python obviously). Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
> > What is PYTHONPATH actually set to? OK so i ran python and then : import sys sys.path bash returned: ['', '/home/matt', '/users/matt/bin', '/home/matt/bin', '/Home/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
> > gnuradiocompanion.py ? And does the error message/stacktrace appear in > > the same terminal window? > hi. ok so i am trying to run the python module (multimode_helper.py) in the GNU radio companion (GRC) which is sort of like an IDE which lets you organize code blocks by arranging

Re: Double posts (was Re: Python module import failed error)

2013-02-19 Thread matt . doolittle33
Thanks Lele. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
Here is the PYTHONPATH >>> import sys >>> sys.path ['', '/home/matt', '/users/matt/bin', '/home/matt/bin', '/Home/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/

AttributeError: ' ' object has no attribute ' '

2013-02-23 Thread matt . doolittle33
I am using Ubuntu 12.10, and Python 2.7.3, GNU Radio Companion v3.6.3. I get the this error in terminal: in __init__ self.wxgui_waterfallsink2_0.set_callback(wxgui_waterfallsink2_0_callback) File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 54, in __getattr_

Re: AttributeError: ' ' object has no attribute ' '

2013-02-23 Thread matt . doolittle33
yeah im not a programmer, i have not wrote anything here that i am trying to use; i am an end user. my only interest in this code is to get the program working. so i have to do what i have to do try to get it working. im just hoping that what im going through here, this error thats coming up