[Tutor] Program won't print out in Windows 10

2016-07-24 Thread Ken G.
While the following program prints out fine using Python 2.7.6 in Ubuntu 14.04.4 as developed using Geany 1.23.1, same program won't print out to printer under Windows 10 Pro (64 bit). Geany uses there is version 1.28 using Python 2.7.12. I can use CTRL-P to print out the listing. ==

Re: [Tutor] Program won't print out in Windows 10

2016-07-24 Thread Steven D'Aprano
On Sun, Jul 24, 2016 at 11:38:06AM -0400, Ken G. wrote: > While the following program prints out fine using > Python 2.7.6 in Ubuntu 14.04.4 as developed using > Geany 1.23.1, same program won't print out to printer > under Windows 10 Pro (64 bit). Geany uses there is > version 1.28 using Python 2.

Re: [Tutor] Variable in tkinter?

2016-07-24 Thread Steven D'Aprano
On Sat, Jul 23, 2016 at 01:55:03PM -0400, R. Alan Monroe wrote: > > button = tkinter.Button(frame, text='Up', command=click_up) > > button = tkinter.Button(frame, text='Down', command=click_down) > > > > when I first looked at it I thought it would not work, thinking that the > > second reference

Re: [Tutor] Variable in tkinter?

2016-07-24 Thread Peter Otten
Steven D'Aprano wrote: > On Sat, Jul 23, 2016 at 01:55:03PM -0400, R. Alan Monroe wrote: >> > button = tkinter.Button(frame, text='Up', command=click_up) >> > button = tkinter.Button(frame, text='Down', command=click_down) >> >> >> > when I first looked at it I thought it would not work, thinkin

Re: [Tutor] Variable in tkinter?

2016-07-24 Thread Alan Gauld via Tutor
On 23/07/16 16:38, Jim Byrnes wrote: > # the views > frame = tkinter.Frame(window) > frame.pack() > button = tkinter.Button(frame, text='Up', command=click_up) > button.pack() > button = tkinter.Button(frame, text='Down', command=click_down) > button.pack() > that is wrong because the program doe

[Tutor] (no subject)

2016-07-24 Thread DiliupG
I am using Python 2.7.12 on Windows 10 filename = "මේක තියෙන්නේ සිංහලෙන්.txt" Why can't I get Python to print the name out? filename = "මේක තියෙන්නේ සිංහලෙන්.txt" Unsupported characters in input filename = u"මේක තියෙන්නේ සිංහලෙන්.txt" Unsupported characters in input above is the python ide out

Re: [Tutor] python programmin problem

2016-07-24 Thread monik...@netzero.net
IM sorry I do not understand: For array A of length N, and for an integer k < N: -- By k do you mean value of k or position of k in the list? L(A, k) is the length of the longest increasing subsequence of the prefix of A with length k, where that subsequence needs to include the k'th element to

[Tutor] Help with error in paramiko

2016-07-24 Thread José de Jesus Marquez Rangel
Hello. I have a problem because when I connect to the remote server via SSH gives me an error with paramiko library, but I connect to the same server with programs like putty, ssh and another there is no error. Here the screenshot: *Script.* [image: Imágenes integradas 1] *the result of run* [i

[Tutor] installing openpyxl

2016-07-24 Thread marcus lütolf
Dear Experts, following instructions in a youtube video I thought I finally succeded to install openpyxl. However I got the traceback below: >>> import openpyxl Traceback (most recent call last): File "", line 1, in import openpyxl File "C:\Users\marcus\AppData\Local\Programs\Python\

[Tutor] installing openpyxl, problem solved

2016-07-24 Thread marcus lütolf
Dear Experts, problem solved, don’t bother, Marcus. …. Dear Experts, following instructions in a youtube video I thought I finally succeded to install openpyxl. However I got the traceback below: >>> import openpyxl Traceback (most recent call last): File

Re: [Tutor] Variable in tkinter?

2016-07-24 Thread Jim Byrnes
On 07/24/2016 02:08 PM, Alan Gauld via Tutor wrote: On 23/07/16 16:38, Jim Byrnes wrote: # the views frame = tkinter.Frame(window) frame.pack() button = tkinter.Button(frame, text='Up', command=click_up) button.pack() button = tkinter.Button(frame, text='Down', command=click_down) button.pack()

Re: [Tutor] Program won't print out in Windows 10

2016-07-24 Thread Tim Golden
On 24/07/2016 16:38, Ken G. wrote: While the following program prints out fine using Python 2.7.6 in Ubuntu 14.04.4 as developed using Geany 1.23.1, same program won't print out to printer under Windows 10 Pro (64 bit). Geany uses there is version 1.28 using Python 2.7.12. I can use CTRL-P t

Re: [Tutor] python programmin problem

2016-07-24 Thread Danny Yoo
On Jul 23, 2016 9:27 AM, "monik...@netzero.net" wrote: > > IM sorry I do not understand: > > For array A of length N, and for an integer k < N: > -- By k do you mean value of k or position of k in the list? > The letter 'k' is typically intended to be used as an index, a position into a list. I'

Re: [Tutor] python programmin problem

2016-07-24 Thread Danny Yoo
> You probably want to use a problem that has fewer moving parts. Your instructor likely has a much nicer introductory problem so that you can learn the patterns of thinking through these problems. Just to add: there are online resources you can use for this. Khan Academy, for example: https://w

Re: [Tutor] python programmin problem

2016-07-24 Thread Alan Gauld via Tutor
On 24/07/16 20:58, Danny Yoo wrote: > Please: I strongly encourage you to talk with your professor or study > group: it really does sound like this is the first time you've seen these > kinds of concepts. I agree with Danny, you should talk to your teacher. I suspect the teacher may have set th

Re: [Tutor] Help with error in paramiko

2016-07-24 Thread Alan Gauld via Tutor
On 23/07/16 09:12, José de Jesus Marquez Rangel wrote: > Hello. > > I have a problem because when I connect to the remote server via SSH gives > me an error with paramiko library, but I connect to the same server with > programs like putty, ssh and another there is no error. > > Here the screensh

Re: [Tutor] installing openpyxl, problem solved

2016-07-24 Thread Alan Gauld via Tutor
On 24/07/16 20:04, marcus lütolf wrote: > Dear Experts, problem solved, don’t bother, Marcus. For the sake of the archive can you post a short mail stating what the solution was? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld