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", "c
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
Lib/idlelib/configdial
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
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
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
> Typ
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
> Typ
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 cal
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.
>>> impor
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()
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()
?
Yes.
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()
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 be
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()
?
--
https://mail.python
À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:
>
> root.grid_r
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)
root.g
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
-
-
-
-
-
-
-
-
-
-
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 a
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 documen
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
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 s
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 comfo
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 firs
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.
> >
> > http://www.pythonware.com/lib
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)
> http://effb
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 re
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 fin
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
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 T
28 matches
Mail list logo