Re: [Tutor] Python 2 Vs python 3

2014-07-15 Thread Cameron Simpson
On 13Jul2014 20:33, Alan Gauld wrote: I've been using python 3 almost exclusively for the last 4 months and the differences are much more significant than the headlines suggest. In particular the module structure and naming is very different - enough to confuse a beginner using a Python2 tutor

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread John Cast
Yes, that pretty well sums up what I would like to do. I can't show the input here, but it is saved as an xlsx file (this is proving problematic for me already since I'm using python 3.4 and it doesn't fully support this format yet...I may have to switch to python 2 for better support). I don't th

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread Alan Gauld
On 15/07/14 17:48, John Cast wrote: 1) How does one automate the save as webpage from python? It is possible using COM objects and the pywin32 library. However that's rarely the best way to approach things. But if you insist... Here is a short example of opening a FileOpen dialog... import w

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread Joel Goldstick
On Tue, Jul 15, 2014 at 12:48 PM, John Cast wrote: > Yes, that's exactly what I'm trying to do. However, when testing this out > manually like I pointed to above, the output of the save as feature freezes > the column widths. This would be fine except that not all of the column > widths are exp

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread John Cast
Yes, that's exactly what I'm trying to do. However, when testing this out manually like I pointed to above, the output of the save as feature freezes the column widths. This would be fine except that not all of the column widths are expanded so that all of the text can be seen (at the moment I do

Re: [Tutor] While Loop and Threads

2014-07-15 Thread Japhy Bartlett
this construct: On Tue, Jul 15, 2014 at 5:09 AM, Oğuzhan Öğreden wrote: > > > while time_now < time_finish: # counter and count_until defined > somewhere above and > if g_threadStop.is_set() == False: > # return something or raise an exception to signal > ite

Re: [Tutor] While Loop and Threads

2014-07-15 Thread James Chapman
Apologies, I didn't answer your question. while time_now < time_finish: # counter and count_until defined somewhere above and if g_threadStop.is_set() == False: # return something Thread methods are typically void, meaning they return nothing. At least this is

Re: [Tutor] While Loop and Threads

2014-07-15 Thread James Chapman
So if I understand this correctly, you want to start a thread and then stop it after a certain time period? Here's an adapted example that includes a timer. (I believe in learning by example where possible) With that said, if it were my code going into production I'd move the timer logic out of th

[Tutor] name error

2014-07-15 Thread ugajin
Thanks all, for your time and trouble spent on this issue.    There are other 2D packages around including; Shoebot, which runs Python 2.7 and is a rewrite of nodebox 1, and is said to be inspired by DrawBot and Shoes. However, its installation is not well documented (or straightforward). node

Re: [Tutor] While Loop and Threads

2014-07-15 Thread Oğuzhan Öğreden
Thanks! I'll have a side question. If I implement this idea to my case, threadWorker() would look like this: def threadWorker(_arg1, _arg2): print("Starting worker thread with args: %s, %s" % (_arg1, _arg2)) while g_threadStop.is_set() == False: ## here comes a for loop:

Re: [Tutor] How to Create Webpage with Python

2014-07-15 Thread Chris “Kwpolska” Warrick
On Jul 15, 2014 3:17 AM, "John Cast" wrote: > > 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/opi

Re: [Tutor] Python 2 Vs python 3

2014-07-15 Thread wesley chun
*> From:* idiallo.s...@gmail.com *> Sent:* Sunday, July 13, 2014 9:16 AM *> To:* Python Tutor Mailing List *> Subject:* [Tutor] Python 2 Vs python 3 > > I am in the process to dive into python and start learning it. But most books > advice to install python 2 instead of ‎python 3. Any advice from