Monday, 16 February 2015

Yellowcode: A History

This is the history of Yellowcode




Quite a while ago, I moved on from Petit Computer to using Python on a computer. At first I was worried that the new language would be too complicated for me, but after I started using it, I changed my mind. I quickly learned that Python was a powerful language and could allow me to make amazing things easily. My first more-than-one-line program moved a turtle:



import turtle

t = turtle.Pen()

t.forward(50)



I used this program on a old desktop running Windows XP, and I was amazed at how easy it was to create animation with Python. This simple code grew a lot, and my first long program was created. It was called Turtle Design Creator, or TDC for short. The code for TDC is too long to include here, but you can download it at turtledesigncreator.weebly.com. TDC included tkinter and turtle. I had a book called Python For Kids that taught me most of my Python knowledge, but it made a terrible mistake. The book said that tkinter buttons can be useful, but are not useful to draw things on the screen. I proved it wrong. tkinter buttons CAN draw things on the screen, with a little help from turtle. Later, I made my first Weebly website, pythondevelopment.weebly.com, which is now my biggest website, and probably will be for a while. My latest program is for download on python development, and it is called Word Wizard. For the description of that, try it out yourself, I'm not telling you. But the code for Word Wizard is below:



from tkinter import *

def storyname(event):

    print(E2.get())

    tk.destroy()

    main()

def main():

    global tk

    tk = Tk()

    tk.title("Word Wizard")

    global label2

    label2 = Label(tk, text="Type each line of your document below")

    global label1

    label1 = Label(tk, text="Word Wizard  2015 Yellowcode")

    global E2

    E2 = Entry(tk, bd=90)

    label2.pack()

    label1.pack()

    E2.pack()

    label2.bind_all("<KeyPress-Return>", storyname)

main()



See? I have learned so much Python that I don't even have to reference my book. Now, I only read my book when I forget a command. LONG LIVE YELLOWCODE!



There is the history of Yellowcode

No comments:

Post a Comment