Sujet : Re: Is Programming Obsolete?
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.miscDate : 07. Apr 2024, 18:19:07
Autres entêtes
Organisation : Stefan Ram
Message-ID : <tkinter-20240407181832@ram.dialup.fu-berlin.de>
References : 1
Ben Collver <
bencollver@tilde.pink> wrote or quoted:
complexity and sophistication of user interfaces. Commercial software
has a professional "look and feel" that the old homebrew BASIC
programs can't match. Kids expect arcade-quality animation and a
graphical user interface. The programs that they can write themselves
don't meet that standard.
With Python and tkinter, GUIs actually are easy to write:
import tkinter
tkinter.Label( text="Hi! What's your name?" ).pack()
entry=tkinter.Entry()
entry.pack()
button = tkinter.Button( text="Ok" )
def ok(): tkinter.Label( text="Hi, " + entry.get() + "!" ).pack()
button.pack()
button.config( command=ok )
tkinter.mainloop()
.