[Tutor] A Simple Tkinter Control Program--Slight Problem

2009-03-05 Thread Wayne Watson
Here's what I think the author meant in discussing a control variable sample program. from Tkinter import * v=StringVar() e = Entry(master, textvariable=v) e.pack() e.focus_set() v.set("a default value") s = v.get() mainloop()

Re: [Tutor] Configuration File, Tkinter, IntVars--Manufacturing Variables

2009-03-05 Thread Wayne Watson
Yes, you have the idea. Here's about the simplest summary I wrote to another person that I can muster. It may clarify matters. The anumber I'm referring to is in the 80 line version I posted to start this thread. A Simple Explanation (I hope) Consider some of t

Re: [Tutor] Configuration File, Tkinter, IntVars--Manufacturing Variables

2009-03-05 Thread Kent Johnson
On Thu, Mar 5, 2009 at 11:36 AM, Wayne Watson wrote: > It looks like your sample code code has the right idea, but the hang up with > the original code is getting entered values back to the main program and > available globally through it. The trick in your code, I think, is to get > the data bac

Re: [Tutor] A Simple Tkinter Control Program--Slight Problem

2009-03-05 Thread Alan Gauld
"Wayne Watson" wrote Here's what I think the author meant in discussing a control variable sample program. from Tkinter import * v=StringVar() e = Entry(master, textvariable=v) AG >> No master defined... you need AG >> mas

[Tutor] Designing Tools/books

2009-03-05 Thread amit sethi
Although this may not be the most appropriate place to ask this but i couldn't figure out where else i should be asking this question.I am getting habitual of starting projects and getting results quickly thanks to python .But I get stuck in documentation because i haven't asked the design question

Re: [Tutor] A Simple Tkinter Control Program--Slight Problem

2009-03-05 Thread Wayne Watson
Title: Signature.html master!   Good. Thanks.   master.mainloop() Alan Gauld wrote: "Wayne Watson" wrote Here's what I think the author meant in discussing a control variable sample program. from Tkinter import * v=StringVar() e = Entry(ma

Re: [Tutor] Designing Tools/books

2009-03-05 Thread Alan Gauld
"amit sethi" wrote problem only seems to come during documentation but i believe this will be a pain when i do this professionally.So my question is please guide me to good internet resources ,books and tools that talk about design especially with python in mind. I don't know of any that

[Tutor] array and ndarray

2009-03-05 Thread Mr Gerard Kelly
I am trying to convert something using the old Numeric module to the numpy module. This is the code so far:: from __future__ import division import pygame, time, random, pygame.sndarray sample_rate = 44100 from numpy import * def sine_array(hz,peak,n_samples=sample_rate): length=sample_rate

[Tutor] Misunderstanding the Entry Widget

2009-03-05 Thread Wayne Watson
Title: Signature.html Apparently Entry does not have a callback. It seems as though it should. If one enters data into it and presses Return, then it would be good to know what the data is, so it can be used elsewhere. However, that's not the way it works. One seems to need a button or some oth