Re: [Tutor] What exactly does the three dots do? Why such as thing?

2017-08-27 Thread C W
Today, I ran into ellipsis again. This time, it is COMPLETELY different from before. Here is a reproducible code: import numpy as np import matplotlib.pyplot as plt ... x = np.linspace(0, 1) y = np.sin(4 * np.pi * x) * np.exp(-5 * x) plt.title('Week cycle') plt.xlabel('Month') plt.ylabel('Price')

[Tutor] Fw: easygui

2017-08-27 Thread George Sconyers via Tutor
Mats, that first line was the problem. Alan, I like the Tkinter idea. Had to pull that package for easygui to work. I will look at transitioning once my son works through the easygui chapter. Trying to teach him how to learn as much as how to program.  Thank you both! George

[Tutor] Need advice on testing python code.

2017-08-27 Thread Anubhav Yadav
Hello. I am a python developer and I write a lot of python code everyday. I try to do as much unit testing as possible. But I want to be better at it, I want to write more test cases, specially that rely on database insertions and reads and file io. Here are my use-cases for testing. How to te

Re: [Tutor] Best way to get root project directory in module search path

2017-08-27 Thread Cameron Simpson
On 27Aug2017 14:27, boB Stepp wrote: On Sun, Aug 27, 2017 at 2:13 AM, Cameron Simpson wrote: On 26Aug2017 21:27, boB Stepp wrote: import sys sys.path.append('..') [...] The trouble with this specific approach is that '..' relies on your _working_ directory being above ScriptMenuSystem i.e.

Re: [Tutor] Best way to get root project directory in module search path

2017-08-27 Thread boB Stepp
On Sun, Aug 27, 2017 at 2:13 AM, Cameron Simpson wrote: > On 26Aug2017 21:27, boB Stepp wrote: >> >> I have a project structure where I am developing various programs, >> some in Pinnacle HotScript language, some in Perl, some in Python, >> some shell scripts. For the purpose of this question, m

Re: [Tutor] easygui

2017-08-27 Thread Mats Wichmann
On 08/27/2017 02:14 AM, Alan Gauld via Tutor wrote: > On 27/08/17 03:07, George Sconyers via Tutor wrote: >> Hello all. Need some help with easygui which my son is trying to run for a >> book he is working in. > > I'm not sure what the current status of easygui is, I read > somewhere that it had

Re: [Tutor] Best way to get root project directory in module search path

2017-08-27 Thread Cameron Simpson
On 26Aug2017 21:27, boB Stepp wrote: I have a project structure where I am developing various programs, some in Pinnacle HotScript language, some in Perl, some in Python, some shell scripts. For the purpose of this question, my simplified development file structure is: ~/_dev_Scripts /Scrip

Re: [Tutor] easygui

2017-08-27 Thread Alan Gauld via Tutor
On 27/08/17 03:07, George Sconyers via Tutor wrote: > Hello all. Need some help with easygui which my son is trying to run for a > book he is working in. I'm not sure what the current status of easygui is, I read somewhere that it had been discontinued. But if you are still finding a download for

[Tutor] easygui

2017-08-27 Thread George Sconyers via Tutor
Hello all. Need some help with easygui which my son is trying to run for a book he is working in. Using Python 2.7 we downloaded easygui and put it in an executable path.  Code is:import easyguieasygui.msgbox("Hello there") No popup occurs, cusor changes to a cross and no longer process mouse cli