Re: Learning tkinter

2023-05-18 Thread MRAB
On 2023-05-12 09:55, Rob Cliffe via Python-list wrote: I am trying to learn tkinter. Several examples on the internet refer to a messagebox class (tkinter.messagebox). But: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help", "copyright",

Re: Learning tkinter

2023-05-18 Thread Mats Wichmann
On 5/18/23 08:50, Jim Schwartz wrote: This works for me. Hope it helps. from tkinter import messagebox messagebox.showerror("Hi", f"Hello World") It's probably instructive that IDLE always brings it in this way. Lib/idlelib/config_key.py:from tkinter import messagebox

Re: Learning tkinter

2023-05-18 Thread Thomas Passin
On 5/18/2023 9:13 AM, Grant Edwards wrote: On 2023-05-12, Rob Cliffe via Python-list wrote: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. import tkinter tkinter.messagebox

RE: Learning tkinter

2023-05-18 Thread Jim Schwartz
This works for me. Hope it helps. from tkinter import messagebox messagebox.showerror("Hi", f"Hello World") -Original Message- From: Python-list On Behalf Of Rob Cliffe via Python-list Sent: Friday, May 12, 2023 3:55 AM To: Python Subject: Learning tkinter

Re: Learning tkinter

2023-05-18 Thread Chris Angelico
On Thu, 18 May 2023 at 19:15, Rob Cliffe via Python-list wrote: > > I am trying to learn tkinter. > Several examples on the internet refer to a messagebox class > (tkinter.messagebox). > But: > > Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 > bit (Intel)] on win32 >

Re: Learning tkinter

2023-05-18 Thread Oscar Benjamin
On Thu, 18 May 2023 at 10:16, Rob Cliffe via Python-list wrote: > > I am trying to learn tkinter. > Several examples on the internet refer to a messagebox class > (tkinter.messagebox). > But: > > Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 > bit (Intel)] on win32 >

Re: Learning tkinter

2023-05-18 Thread Grant Edwards
On 2023-05-12, Rob Cliffe via Python-list wrote: > > Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 > bit (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import tkinter > >>> tkinter.messagebox > Traceback (most recent

Learning tkinter

2023-05-18 Thread Rob Cliffe via Python-list
I am trying to learn tkinter. Several examples on the internet refer to a messagebox class (tkinter.messagebox). But: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>

Re: Learning tkinter - a grid problem

2020-12-07 Thread Terry Reedy
On 12/6/2020 5:59 AM, Terry Reedy wrote: On 12/6/2020 3:11 AM, Sibylle Koczian wrote: Am 05.12.2020 um 19:56 schrieb Paulo da Silva: Why this example does not work? -- from tkinter import * root=Tk() root.geometry("400x200") S=Scrollbar(root) T=Text(root) ... mainloop()

Re: Learning tkinter - a grid problem

2020-12-06 Thread Terry Reedy
On 12/6/2020 3:11 AM, Sibylle Koczian wrote: Am 05.12.2020 um 19:56 schrieb Paulo da Silva: Why this example does not work? -- from tkinter import * root=Tk() root.geometry("400x200") S=Scrollbar(root) T=Text(root) ... mainloop() Shouldn't that be root.mainloop() ?

Re: Learning tkinter - a grid problem

2020-12-06 Thread Sibylle Koczian
Am 06.12.2020 um 15:19 schrieb MRAB: On 2020-12-06 08:11, Sibylle Koczian wrote: Am 05.12.2020 um 19:56 schrieb Paulo da Silva: Hi! Why this example does not work? -- from tkinter import * root=Tk() root.geometry("400x200") S=Scrollbar(root) T=Text(root) ... mainloop()

Re: Learning tkinter - a grid problem

2020-12-06 Thread MRAB
On 2020-12-06 08:11, Sibylle Koczian wrote: Am 05.12.2020 um 19:56 schrieb Paulo da Silva: Hi! Why this example does not work? -- from tkinter import * root=Tk() root.geometry("400x200") S=Scrollbar(root) T=Text(root) ... mainloop() - Shouldn't that

Re: Learning tkinter - a grid problem

2020-12-06 Thread Sibylle Koczian
Am 05.12.2020 um 19:56 schrieb Paulo da Silva: Hi! Why this example does not work? -- from tkinter import * root=Tk() root.geometry("400x200") S=Scrollbar(root) T=Text(root) ... mainloop() - Shouldn't that be root.mainloop() ? --

Re: Learning tkinter - a grid problem

2020-12-05 Thread Paulo da Silva
Às 20:20 de 05/12/20, MRAB escreveu: > On 2020-12-05 18:56, Paulo da Silva wrote: >> Hi! >> >> Why this example does not work? >> > There are a few bits of configuration missing: > >> -- >> from tkinter import * >> >> root=Tk() >> root.geometry("400x200") > > Add: > >

Re: Learning tkinter - a grid problem

2020-12-05 Thread MRAB
On 2020-12-05 18:56, Paulo da Silva wrote: Hi! Why this example does not work? There are a few bits of configuration missing: -- from tkinter import * root=Tk() root.geometry("400x200") Add: root.grid_rowconfigure(0, weight=1) root.grid_columnconfigure(0, weight=1)

Learning tkinter - a grid problem

2020-12-05 Thread Paulo da Silva
Hi! Why this example does not work? -- from tkinter import * root=Tk() root.geometry("400x200") S=Scrollbar(root) T=Text(root) T.grid(row=0,column=0) S.grid(row=0,column=1) S.config(command=T.yview) T.config(yscrollcommand=S.set) txt="""This is a very big text - - - - - - - - -

Re: Learning Tkinter

2008-04-17 Thread Eric Brunel
On Wed, 16 Apr 2008 14:46:13 +0200, Doran, Harold [EMAIL PROTECTED] wrote: [snip] Second, I am trying to work through a couple of the examples and make some small tweaks as I go to see how new things can work. In the first case, I have copied the code in the book to see how the menu works and

Learning Tkinter

2008-04-16 Thread Doran, Harold
I am currently reading An Intro to Tkinter (1999) by F. Lundh. This doc was published in 1999 and I wonder if there is a more recent version. I've googled a bit and this version is the one I keep finding. I like how this document is organized and also how it provides the code with visuals of what

Re: Learning Tkinter

2008-04-16 Thread srf99
You might want to look at these: Thinking in Tkinter http://www.ferg.org/thinking_in_tkinter/index.html Easygui http://www.ferg.org/easygui/index.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Tkinter

2008-04-16 Thread Mike Driscoll
On Apr 16, 7:46 am, Doran, Harold [EMAIL PROTECTED] wrote: I am currently reading An Intro to Tkinter (1999) by F. Lundh. This doc was published in 1999 and I wonder if there is a more recent version. I've googled a bit and this version is the one I keep finding. I like how this document is

Re: Welch essential for learning Tkinter well?

2007-04-07 Thread Dick Moores
At 10:36 AM 4/6/2007, Russell E. Owen wrote: In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: James Stroud wrote: This begs the question, is anyone truly an expert in Tkinter? Frederick Lundh is, if anyone is.

Re: Welch essential for learning Tkinter well?

2007-04-07 Thread James Stroud
Dick Moores wrote: At 10:36 AM 4/6/2007, Russell E. Owen wrote: I find Welch's book and the on-line tcl/tk help very helpful for Tkinter programming--especially some of the more obscure details. But to use either of these resources comfortably you must learn the basics of Tkinter first

Re: Welch essential for learning Tkinter well?

2007-04-07 Thread Dick Moores
At 03:43 AM 4/7/2007, James Stroud wrote: Dick Moores wrote: At 10:36 AM 4/6/2007, Russell E. Owen wrote: I find Welch's book and the on-line tcl/tk help very helpful for Tkinter programming--especially some of the more obscure details. But to use either of these resources comfortably you

Re: Welch essential for learning Tkinter well?

2007-04-06 Thread Russell E. Owen
In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: James Stroud wrote: This begs the question, is anyone truly an expert in Tkinter? Frederick Lundh is, if anyone is. http://www.pythonware.com/library/tkinter/introduction/index.htm (outdated)

Welch essential for learning Tkinter well?

2007-04-05 Thread Dick Moores
In a couple of places recently I've seen Brent Welch's _Practical Programming in Tcl Tk_ (http://tinyurl.com/ynlk8b) recommended for learning Tkinter well. So a couple of questions: 1) Is it really good for learning Tkinter, even though it doesn't mention Tkinter at all (in the 4th edition

Re: Welch essential for learning Tkinter well?

2007-04-05 Thread James Stroud
Dick Moores wrote: In a couple of places recently I've seen Brent Welch's _Practical Programming in Tcl Tk_ (http://tinyurl.com/ynlk8b) recommended for learning Tkinter well. So a couple of questions: 1) Is it really good for learning Tkinter, even though it doesn't mention Tkinter

Re: Welch essential for learning Tkinter well?

2007-04-05 Thread Kevin Walzer
James Stroud wrote: This begs the question, is anyone truly an expert in Tkinter? Frederick Lundh is, if anyone is. http://www.pythonware.com/library/tkinter/introduction/index.htm (outdated) http://effbot.org/tkinterbook/ (new but incomplete) Coming to Python from a Tcl/Tk background, I find

Re: Welch essential for learning Tkinter well?

2007-04-05 Thread Paul Rubin
Dick Moores [EMAIL PROTECTED] writes: In a couple of places recently I've seen Brent Welch's _Practical Programming in Tcl Tk_ (http://tinyurl.com/ynlk8b) recommended for learning Tkinter well. I'm skeptical of the value of learning Tkinter really well. No matter how thoroughly you learn