testing tkinter [raspberrypi]

some tkinter infos:
http://tkinter.unpythonic.net/wiki/FrontPage?action=show&redirect=StartSeite
https://wiki.python.org/moin/TkInter
http://tkinter.unpythonic.net/wiki/ContributedWidgets
http://effbot.org/zone/tkinter-geometry.htm
http://thinkingtkinter.sourceforge.net/
http://www.python-course.eu/tkinter_layout_management.php
http://tkinter.unpythonic.net/wiki/Widgets
https://de.m.wikipedia.org/wiki/Tkinter
http://wiki.tcl.tk/4580

testing:
mkdir tkinter
nano ~/tkinter/tkinterTest.py

#Example (Hello, World):
import Tkinter

tk = Tkinter.Tk()
frame = Tkinter.Frame(tk, relief="ridge", borderwidth=2)
frame.pack(fill="both",expand=1)
label = Tkinter.Label(frame, text="Hallo Welt!")
label.pack(expand=1)
button = Tkinter.Button(frame,text="OK",command=tk.destroy)
button.pack(side="bottom")

tk.mainloop()

run it with:
python ~/tkinter/tkinterTest.py

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s