Re: [Tutor] Baccarat code check.

2011-12-17 Thread Dave Angel
On 12/16/2011 03:29 AM, col speed wrote: If anyone has the time, please have a look at the attached text file and let me know any comments on how to improve it. Thanks a lot Col I don't see any response for 24 hours, so I'd say that nobody has the time. However, you could have improved the odd

Re: [Tutor] Baccarat code check.

2011-12-17 Thread Peter Otten
col speed wrote: > If anyone has the time, please have a look at the attached text file > and let me know any comments on how to improve it. At first glance the code looks good. I think you can move to the next level now ;) Are you using a version control system? If not, have a look at mercuria

Re: [Tutor] Baccarat code check.

2011-12-17 Thread col speed
On 17 December 2011 16:40, Dave Angel wrote: > On 12/16/2011 03:29 AM, col speed wrote: >> >> If anyone has the time, please have a look at the attached text file >> and let me know any comments on how to improve it. >> Thanks a lot >> Col >> > I don't see any response for 24 hours, so I'd say tha

Re: [Tutor] Baccarat code check.

2011-12-17 Thread col speed
On 17 December 2011 16:49, Peter Otten <__pete...@web.de> wrote: > col speed wrote: > >> If anyone has the time, please have a look at the attached text file >> and let me know any comments on how to improve it. > > At first glance the code looks good. I think you can move to the next level > now ;

[Tutor] Weird Error

2011-12-17 Thread Ken G.
I have use 'sleep.time(5)' in most of my program but the following error is throwing me for a loss. import time Traceback (most recent call last): File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py", line 63, in time.sleep(2) AttributeError: 'str' object has no attribut

Re: [Tutor] Weird Error

2011-12-17 Thread Peter Otten
Ken G. wrote: > I have use 'sleep.time(5)' in most of my program but the following error > is throwing me for a loss. > > import time > Traceback (most recent call last): >File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py", > line 63, in > time.sleep(2) > AttributeErro

Re: [Tutor] Weird Error

2011-12-17 Thread Shrivats
Hello, On Sat, Dec 17, 2011 at 10:19:37AM -0500, Ken G. wrote: > I have use 'sleep.time(5)' in most of my program but the following error > is throwing me for a loss. > > import time > Traceback (most recent call last): > File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py", >

Re: [Tutor] Weird Error

2011-12-17 Thread Ken G.
On 12/17/2011 10:40 AM, Peter Otten wrote: Ken G. wrote: I have use 'sleep.time(5)' in most of my program but the following error is throwing me for a loss. import time Traceback (most recent call last): File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py", line 63, in

[Tutor] Github Pygame Example Repository

2011-12-17 Thread ANKUR AGGARWAL
I have created an pygame example repo on github to promote the learning of this API. check this out https://github.com/ankur0890/Pygame-Examples-For-Learning . I created an blog post of the same on my linux blog : http:.//flossstuff.wordpress.com/2011/12/17/github-repository-for-pygame-examples/ .

[Tutor] unsupported operand

2011-12-17 Thread stm atoc
Hi there, I would like to define concentration array based on time and then plot it. Here is the profile: from pylab import * import numpy import array import math tmax=1*3600 t = 1. outfile=open('ourtest_out.list','w') N = 100 Conc1 = arange([0, tmax]) outfile.close() lw = 2.0 #linewidth d

Re: [Tutor] unsupported operand

2011-12-17 Thread bodsda
I would suggest a few things, like variable naming style consistency or the unused file that you open and close. You also have an unused lw variable, and does dpi really need to be a variable? Its only used once, why not hard code it. But the main thing I suggest, is posting the 'complete' trace

Re: [Tutor] Github Pygame Example Repository

2011-12-17 Thread Ken G.
The second link should be read as follow: http://flossstuff.wordpress.com/2011/12/17/github-repository-for-pygame-examples/ You had an extra period after http: Ken On 12/17/2011 01:00 PM, ANKUR AGGARWAL wrote: I have created an pygame example repo on github to promote the learning of this API

Re: [Tutor] unsupported operand

2011-12-17 Thread Steven D'Aprano
stm atoc wrote: and this is the error that I got: Would you like us to guess which line causes the error? Please show the ENTIRE traceback. Do not retype it from memory, paraphrase or simplify it, or otherwise change it in any way. Copy and paste it. TypeError: unsupported operand type(s)

[Tutor] where does the ViewerFrameWorkGUI come from

2011-12-17 Thread lina
Hi, I met below issue: File "/usr/lib/python2.7/dist-packages/ViewerFramework/VF.py", line 369, in __init__ self.GUI = ViewerFrameworkGUI(self, title=title, NameError: global name 'ViewerFrameworkGUI' is not defined can someone tell me how to examine, I mean, how to examine, what would you