Re: [Tutor] interface

2015-12-15 Thread Alan Gauld
On 15/12/15 22:13, Mark Lawrence wrote: > wxPython still does not support Python 3, and it doesn't look as if this > will happen any time soon. In fairness this is due to Robin Dunn being > tied up on paid work. That's a pity. Not least because it presumably means Dabo is stuck on v2 too. Dabo

Re: [Tutor] interface

2015-12-15 Thread Mark Lawrence
On 15/12/2015 00:52, Alan Gauld wrote: On 14/12/15 21:48, Alex Kleider wrote: wxPython is slightly more complex but more powerful and looks more like the native UI on each platform. (There is also Dabo which is wxPython based but has an IDE with GUI builder and is very good for database oriente

Re: [Tutor] Countdown Clock Programming Question

2015-12-15 Thread Alan Gauld
On 15/12/15 17:10, Alan Gauld wrote: > > import tkinter as tk > > def count_down(start,stop): >display['text'] = str(start) >if start > stop: > top.after(1000, lambda : count_down(start-1,stop)) > > top = tk.Tk() > display = tk.Button(top,text="Press"

Re: [Tutor] Countdown Clock Programming Question

2015-12-15 Thread Alan Gauld
On 15/12/15 14:18, Evan Sommer wrote: > Hey there Alan! > > So I tried some of your modifications, and they seem to be doing some > pretty interesting things with the program. For some reason, now the > program runs extremely fast, and doesn't now count down in one second > intervals. I think this

Re: [Tutor] Countdown Clock Programming Question

2015-12-15 Thread Evan Sommer
Hey there Alan! So I tried some of your modifications, and they seem to be doing some pretty interesting things with the program. For some reason, now the program runs extremely fast, and doesn't now count down in one second intervals. I think this is a result of the root.after command. I still ge

Re: [Tutor] functions

2015-12-15 Thread Steven D'Aprano
On Tue, Dec 15, 2015 at 11:19:33AM +, Matthew Lintern wrote: > Hello, > > I'm new to python and I've been following some youtube videos etc to learn > python. I'm using the spyder IDE. Im having problems with the following > piece of code: > > def myfun(x): > y=x**2 > return y > > p

Re: [Tutor] functions

2015-12-15 Thread Alan Gauld
On 15/12/15 11:19, Matthew Lintern wrote: > def myfun(x): > y=x**2 > return y > > print myfun(5) > > However, Spyder tells me there's a syntax error with myfun(5). I suspect that the video is for Python v2 and you are using Python v3. v3 was a major change in the language and on of the

[Tutor] functions

2015-12-15 Thread Matthew Lintern
Hello, I'm new to python and I've been following some youtube videos etc to learn python. I'm using the spyder IDE. Im having problems with the following piece of code: def myfun(x): y=x**2 return y print myfun(5) the answer I should get is obviously 25, and this is the case in the vid

Re: [Tutor] Batchfile to Python conversion

2015-12-15 Thread Alan Gauld
On 15/12/15 09:14, Dominique Descamps wrote: > As I'm dealing here with almost hundred batchfiles, some of them > containing several hundreds of lines of code, I'm more > interested in a tool, who can do this conversion automatically. > > Can you confirm me whether or not such a conversion tool

[Tutor] Batchfile to Python conversion

2015-12-15 Thread Dominique Descamps
Dear, In my company we are working with Windows-7 batchfiles, but as you know, this is very limited, unreadable and time-consuming. I have already some experience with Python and as I'm very satisfied with it, I would like to use Python instead of continuing using batchfiles. Those batchfiles h

Re: [Tutor] interface

2015-12-15 Thread Laura Creighton
A question for Alex Kleider: Do you want this thing to eventually run on mobile? -- android and IOS? If so, tkinter isn't the place to start, but kivy (which also runs on desktops) is. http://kivy.org/#home re: full stack frameworks The thing about full stack frameworks such as Django is that the