Need Help with Tkinter Plotting

John Grayson johngrayson at home.com
Thu Aug 31 06:31:18 EDT 2000


In article <39ADB94F.E62A9A08 at home.com>,
  timin at homeSPAMNOT.com wrote:
> Hello,
>
> I want to draw graphs with Tkinter.  I have this little script (below)
that
(snip)


You can add a button to the root ...

canvas=Canvas(root,width=810,height=600)
canvas.pack()
Button(root, text='Quit', command=root.quit).pack(side=BOTTOM,
anchor=SE)

BTW, If you don't have my book, take a look at:
www.Manning.com/Grayson/Chapters.html. You can pick up Chapter11
(in pdf format) which has some fairly useful generic graph code (the
source code is on the site, too).

Good Luck!

   John


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list