Revision 36 as of 2005-05-14 05:52:46

Clear message

Hello

Personal Message from ChiehBR

BRBRBR Intro to programming with Python n TkinterBR Have you ever wanted to know how your application is programmed on the computer. This lecture will show you how easy it is to program.

Aimed at beginner programmers or people that has no programming experience. For you to watch this class, you must have python installed from python.org . Lecture 2 will show you how to install and run python. This lecture assumes that you already have python.

The python course series is designed to be short, fun, and concise. They are 10 minutes each with fun examples and easy instruction. If you want to learn programming this is the way to go.

Lecture 1: Why is python so cool???BR In this lecture I will convince you that python will eventually take over the world :). Actually we will discuss how the class will be conducted and how much fun we are going to have. This will be the last lecture I write.

Lecture 2: How to download pythonBR I will show you where you download python. If you found this page, chances are that you already know how. I will also talk about different resources to help you program python.

Lecture 3: Your first python program(10min)BR http://ourmedia.org/node/2128 BR Like all programming books, we kick off with a quick and simple non-hello world application. BR You will learn: importing Tkinter library, create a simple list, create a window, create a listbox, fill a listbox, parents of widgetsBR Example Code ["lecture3 example 1"], ["lecture3 example 2"]BRBR

Lecture 4: Button are meant to be pushed(10min)BR http://ourmedia.org/node/3093 BR When you press a button, your program will say "hi"BR You will learn: create a button, create a label, link up a button with specific functions, the concept of functions, indentation of functions, changing the foreground and background of widgetsBR Example Code ["lecture4 example 1"], ["lecture4 example 2"], ["lecture4 example 3"], ["lecture4 example 5"]BRBR

Lecture 5: Stealing is good in programming(10min)BR http://ourmedia.org/node/3094 BR We will program something using other people's code :)BR Your will learn:How to program large programs, how to borrow other people's code(modules), basic concepts to functionsBR Example Code ["lecture5 stacy.py 1"], ["lecture5 chieh.py"]BRBR

Lecture 6: How to create anything in Tkinter(10min)BR http://ourmedia.org/node/3105 BR The needed text is at http://ourmedia.org/node/6635 BR We will learn how to create everything in the Tkinter library, windows, buttons, listbox, entrybox, menus, etc. BR You will learn:How to create any Tkinter widget, how to make stand alone modules.BR Example Code attachment:lecture6_chieh.py attachment:lecture6_stacy.py

Lecture 7: Now let's make them do something (10min)BR http://ourmedia.org/node/4221 BR Now that we have learned how to create widgets, we need to tell them to do something. In this lecture we will mainly focus on Entry boxes. We will create an entry box, a button, and a listbox. When we press the button the program will take the name in the entry and put them into the list. BR

You will learn: insert text into a listbox, get text from Entry box, changing the size of the window, controlling where the window pop up, delete what's inside the entry box, controlling the padding between widgetsBR Example Code attachment:lecture7_homework.py attachment:lecture7_text.py

Lecture 8: Let's make some decisions (7min)BR http://ourmedia.org/node/9691 BR Learn how to use the if statements. Having a program that makes decisions for us will make our life much easier and our programs more powerful. In this program you will decide which girl we should go out with on a friday night and which car we should buy. :)BR You will learn: How to use if statements, examples are providedBR Example Code attachment:lecture8_ifexample.py

Lecture 9: Let's create a password system(11min)BR http://ourmedia.org/node/9694 BR Learn how we can use the if statement to create a password system.BR You will learn: how to focus on a widget, delete and insert text in an entry box, more examples of if else statementBR Example Code attachment:lecture9_password.py

Lecture 10: Photo display Part A(15min)BR http://ourmedia.org/node/9765 BR Learn how to create a photo display. The concentration of this lecture is about variables. Talk about the basic types of variables such as integer, float, string, and Booleans. Talk about local and global variables. BR You will learn: The 4 basic different types of variables.(integer, float, string, boolean), learn the concept of global and local variables. How do you find out what type a variable is, when do you use single or double quotes for stringsBR Example Code attachment:lecture10_pictures.py

Lecture 11: Photo display Part B(9min)BR http://ourmedia.org/node/10943 BR Actually creating the image viewer. We are going to create what I promised last lecture. BR You will learn: How to use canvas widget to include a gif image, how to delete an image. A real example of the need for global variables.

BRBRBRBRBRBRBRBR Chieh's Blog and suggestionBRBR

That's incredible! I don't have any video equipment at home, but I should have some within 2 years. -- LionKimbro DateTime(2005-04-15T20:16:00Z)

Instead of making wiki pages named ["lecture3 example 1"] and what not, which is begging for a name clash, how about instead posting the files as attachments?

You can type attachment:foo.txt, and that becomes a text file attachment.

An example: attachment:lecture3example1.txt

:) -- LionKimbro DateTime(2005-04-27T19:29:44Z)

Oh i didn't see what you wrote. Yes you are right, I was just looking for how I could do that, I will try to convert them ,,, thank you very much :)

Unable to edit the page? See the FrontPage for instructions.