Re: [Tutor] how do I set variables in Python 3.4

2014-07-14 Thread wesley chun
Greetings Danielle, Welcome to programming! Thanks for the additional clarification as to what your project is. Starting from scratch isn't easy, but with a little bit of guidance, you'll soon be able to "drive on your own!" In the course you're taking, can you share a bit about what resources yo

Re: [Tutor] How to Create Webpage with Python

2014-07-14 Thread John Cast
Hey everyone, I really appreciate all of the help you given me. I am making progress, however I have reached a problem I'm not sure how best to tackle and would like someone with more experience with excel and python to lend their knowledge/opinion before I dive in further. I have two questions:

Re: [Tutor] how do I set variables in Python 3.4

2014-07-14 Thread Danielle Salaz
This is the assignment: Write a Python script as follows: Use 3 variables named: operand1 operand2 result Set operand1 = 2 and operand2 = 7. Evaluate the following expressions and produce the output as shown: result = operand1 + operand2 result = operand2 – operand1

Re: [Tutor] name error

2014-07-14 Thread Steven D'Aprano
On Mon, Jul 14, 2014 at 12:13:33PM -0400, uga...@talktalk.net wrote: [...] > To draw a default rectangle using the nodebox 1, IDE you would simply > write: rect(0, 0, 100, 100) to a .py file. When run in nodebox 1, IDE > it does what you might expect. It renders a 100 x 100 (px) rectangle > sh

Re: [Tutor] name error

2014-07-14 Thread Dave Angel
uga...@talktalk.net Wrote in message: > I am running nodebox 1 on OSX v10.6.8, which is an open source OSX > Python, 2D data visualiser, and although not legacy, the software it > isn't well supported. (see http://nodebox.net/code/index.php/Home for > further info). I believe nodebox 1, runs wi

Re: [Tutor] name error

2014-07-14 Thread Mark Lawrence
On 14/07/2014 19:18, Alan Gauld wrote: On 14/07/14 17:13, uga...@talktalk.net wrote: I am running nodebox 1 on OSX v10.6.8, which is an open source OSX Python, 2D data visualiser, I can't help with the actual query, sorry. But are you tied to nodebox for a reason? There are other 2D packages a

Re: [Tutor] While Loop and Threads

2014-07-14 Thread James Chapman
OK, so I mocked up an example now... import time import threading g_threadStop = threading.Event() def threadWorker(_arg1, _arg2): print("Starting worker thread with args: %s, %s" % (_arg1, _arg2)) while(not g_threadStop.is_set()): print("Thread running.") time.sleep(1)

Re: [Tutor] name error

2014-07-14 Thread Alan Gauld
On 14/07/14 17:13, uga...@talktalk.net wrote: I am running nodebox 1 on OSX v10.6.8, which is an open source OSX Python, 2D data visualiser, I can't help with the actual query, sorry. But are you tied to nodebox for a reason? There are other 2D packages around, maybe a different package (with

Re: [Tutor] While Loop and Threads

2014-07-14 Thread James Chapman
Multi-threading takes practice! Are you using an event object to signal the thread should exit? I'm guessing you're just using a bool which is why it does not work. See: https://docs.python.org/3.4/library/threading.html#event-objects I'm very short on time and the moment and therefore can't moc

[Tutor] name error

2014-07-14 Thread ugajin
I am running nodebox 1 on OSX v10.6.8, which is an open source OSX Python, 2D data visualiser, and although not legacy, the software it isn't well supported. (see http://nodebox.net/code/index.php/Home for further info).  I believe nodebox 1, runs with Python 2.5    This may be too specialised