Final Program Post 2

Final Program Post 2

Since I decided to do a program that would include graphics and the actual time in the location that we were in I had to get familiar with how to code with graphics. I didn’t use any other downloads other than what came with the python shell. the name of the graphics user I had was Tkinter. I needed to learn this because I wanted to make my program look good. Before when I didn’t use any graphics at all my program look very week and boring so I decided to spice things up a little bit by trying to add these graphics. the source code was a lot different to me when I was writing it for graphics too. I wanted the people to really appreciate what my program was because of its graphics .

 

1
2
3
4
5
6
def drawcircle(Alpha,Beta,Rayon,Couleur,can):
    #
    #draw a circle base on the center radius and color
    #
    x1,y1,x2,y2=Alpha-Rayon, Beta-Rayon, Alpha+Rayon, Beta+Rayon
    can.create_oval(x1,y1,x2,y2,fill=Couleur)

I really liked this part of my code because it was when I first got something to draw on my screen. I was super happy that I had finally worked and it took me a lot longer than it should have to actually figure out what to do.

1
2
3
def main():
    clock_display()
    weather_display()

I didn’t like this bit because I kind of felt ashamed that my main is so small and my other procedures were so big. I didn’t think it could be split up that much because you need so many of the functions in the program to work together and it would be easier to have them all together under one procedure rather than splitting them apart.

 

                        

Leave a Reply

Your email address will not be published. Required fields are marked *