Re: [Tutor] project directory structure

2016-08-26 Thread Ben Finney
Alex Kleider writes: > Am I to assume that if I have activated a virtualenv, then the > following shebang > #!/usr/bin/env python > will use the python specified in the venv/bin/? Yes, the purpose of that shebang is to tell the OS that *whichever* ‘python’ command is found first, is the one to u

Re: [Tutor] syntax error help

2016-08-26 Thread Alan Gauld via Tutor
On 30/03/16 19:05, Awais Mamoon wrote: > Hi my code should be working however keeps coming up with invalid syntax but > I know there isn’t one. You are wrong. There is. I suspect the error message tells you where it is. In future please include the full error message with your code. Look closely

Re: [Tutor] syntax error help

2016-08-26 Thread David Rock
> On Mar 30, 2016, at 13:05, Awais Mamoon wrote: > > Hi my code should be working however keeps coming up with invalid syntax but > I know there isn’t one. Please help me its been 2 hours > When you run your code, what is the actual error you get (copy and paste the entire thing, please)? Wh

[Tutor] syntax error help

2016-08-26 Thread Awais Mamoon
Hi my code should be working however keeps coming up with invalid syntax but I know there isn’t one. Please help me its been 2 hours Here is my code: alphabet = 'abcdefghijklmnaopqrstuvwxyz' #gets the message from the user so it can Encrypt or Decrypt def getMessage(): prin

Re: [Tutor] tkinter/sqlite3?

2016-08-26 Thread Jim Byrnes
On 08/26/2016 04:22 AM, Alan Gauld via Tutor wrote: On 26/08/16 02:34, Jim Byrnes wrote: Exception in Tkinter callback Traceback (most recent call last): ... File "tk_pwds.py", line 56, in fill_accounts_lb cur.execute('''SELECT Account FROM pwds WHERE Category=? ORDER BY Account COLLA

Re: [Tutor] tkinter/sqlite3?

2016-08-26 Thread Jim Byrnes
On 08/26/2016 02:03 AM, Peter Otten wrote: Jim Byrnes wrote: I am working with Python 3.4.3 on Ubuntu 14.04. I am learning tkinter so I decided to rewrite a program I had written in pythoncard in tkinter. I found that a sqlite3 SELECT statement that works in pythoncard throws an error in tkint

Re: [Tutor] tkinter/sqlite3?

2016-08-26 Thread Alan Gauld via Tutor
On 26/08/16 02:34, Jim Byrnes wrote: > Exception in Tkinter callback > Traceback (most recent call last): ... >File "tk_pwds.py", line 56, in fill_accounts_lb > cur.execute('''SELECT Account FROM pwds WHERE Category=? ORDER BY > Account COLLATE NOCASE''', category) > sqlite3.ProgrammingE

Re: [Tutor] tkinter/sqlite3?

2016-08-26 Thread Peter Otten
Jim Byrnes wrote: > I am working with Python 3.4.3 on Ubuntu 14.04. > > I am learning tkinter so I decided to rewrite a program I had written in > pythoncard in tkinter. I found that a sqlite3 SELECT statement that > works in pythoncard throws an error in tkinter and am wondering why? > > # Fill