コード例 #1
0
def draw_second(main_screen):
	main_screen.fill((200,116,76))





	a4 = blocks.button([100,100],[100,150],(130,122,255))
	a4.create(main_screen)
	la4 = labelclass.Label([130,250],[100,25],"Cone",20)
	la4.createlabel(main_screen)	
	b4 = blocks.button([100,100],[400,150],(130,112,255))
	b4.create(main_screen)
	lb4 = labelclass.Label([440,250],[100,25],"Cup",20)
	lb4.createlabel(main_screen)	
	c4 = blocks.button([460,70],[100,25],(130,112,255))
	c4.create(main_screen)
	lc4 = labelclass.Label([100,25],[100,25],"choose your icecream container",40)
	lc4.createlabel(main_screen)	
	d4 = blocks.button([120,50],[150,550],(130,112,255))
	d4.create(main_screen)
	ld4 = labelclass.Label([175,580],[120,50],"Back", 30)
	ld4.createlabel(main_screen)
	e4 = blocks.button([120,50],[300,550],(130,112,255))
	e4.create(main_screen)
	le4 = labelclass.Label([325,580],[120,50],"Next", 30)
	le4.createlabel(main_screen)
コード例 #2
0
def draw3(main_screen):
	main_screen.fill((196,255,255))
	
	a3 = blocks.button([100,100],[100,150],(58,255,255))
	a3.create(main_screen)
	la3 = labelclass.Label([100,250],[100,25],"Vanilla",20)
	la3.createlabel(main_screen)	
	b3 = blocks.button([100,100],[400,150],(58,255,255))
	b3.create(main_screen)
	lb3 = labelclass.Label([400,250],[100,25],"Chocolate",20)
	lb3.createlabel(main_screen)	
	c3 = blocks.button([100,100],[250,300],(58,255,255))
	c3.create(main_screen)
	lc3 = labelclass.Label([250,400],[100,25],"Strawberry",20)
	lc3.createlabel(main_screen)	
	d3 = blocks.button([120,50],[150,550],(58,255,255))
	d3.create(main_screen)
	ld3 = labelclass.Label([150,550],[120,50],"Previous", 30)
	ld3.createlabel(main_screen)
	e3 = blocks.button([120,50],[300,550],(58,255,255))
	e3.create(main_screen)
	le3 = labelclass.Label([300,550],[120,50],"Next", 30)
	le3.createlabel(main_screen)
	l3 = labelclass.Label([250,25],[150,75],"Flavors",50)
	l3.createlabel(main_screen)
コード例 #3
0
def draw3(main_screen):
    main_screen.fill((196, 255, 255))

    a3 = blocks.button([100, 100], [100, 150], (58, 255, 255))
    a3.create(main_screen)
    la3 = labelclass.Label([100, 250], [100, 25], "Vanilla", 20)
    la3.createlabel(main_screen)
    b3 = blocks.button([100, 100], [400, 150], (58, 255, 255))
    b3.create(main_screen)
    lb3 = labelclass.Label([400, 250], [100, 25], "Chocolate", 20)
    lb3.createlabel(main_screen)
    c3 = blocks.button([100, 100], [250, 300], (58, 255, 255))
    c3.create(main_screen)
    lc3 = labelclass.Label([250, 400], [100, 25], "Strawberry", 20)
    lc3.createlabel(main_screen)
    d3 = blocks.button([120, 50], [150, 550], (58, 255, 255))
    d3.create(main_screen)
    ld3 = labelclass.Label([150, 550], [120, 50], "Previous", 30)
    ld3.createlabel(main_screen)
    e3 = blocks.button([120, 50], [300, 550], (58, 255, 255))
    e3.create(main_screen)
    le3 = labelclass.Label([300, 550], [120, 50], "Next", 30)
    le3.createlabel(main_screen)
    l3 = labelclass.Label([250, 25], [150, 75], "Flavors", 50)
    l3.createlabel(main_screen)
コード例 #4
0
def draw_screen(main_screen):
    main_screen.fill((0, 0, 0))

    # picture1= picture.Picture(105,15,[250,270],"finallogo.jpg")
    # picture1.draw(main_screen)
    bimage = picture.Picture(0, 0, [600, 600], "icecream.jpeg")
    bimage.draw(main_screen)
    global p1
    p1 = blocks.button([60, 40], [510, 550], (255, 255, 255))
    p1.create(main_screen)
    lp1 = labelclass.Label([510, 550], [60, 40], "Order", 25)
    lp1.createlabel(main_screen)
コード例 #5
0
def draw_screen(main_screen):
    main_screen.fill((0,0,0))

   # picture1= picture.Picture(105,15,[250,270],"finallogo.jpg")
   # picture1.draw(main_screen)
    bimage = picture.Picture(0, 0, [600, 600], "icecream.jpeg")
    bimage.draw(main_screen)
    global p1
    p1=blocks.button([60,40],[510,550], (255,255,255))
    p1.create(main_screen)
    lp1=labelclass.Label([510,550],[60,40],"Order",25)
    lp1.createlabel(main_screen)
コード例 #6
0
def draw_second(main_screen):
    main_screen.fill((200, 116, 76))

    a4 = blocks.button([100, 100], [100, 150], (130, 122, 255))
    a4.create(main_screen)
    la4 = labelclass.Label([130, 250], [100, 25], "Cone", 20)
    la4.createlabel(main_screen)
    b4 = blocks.button([100, 100], [400, 150], (130, 112, 255))
    b4.create(main_screen)
    lb4 = labelclass.Label([440, 250], [100, 25], "Cup", 20)
    lb4.createlabel(main_screen)
    c4 = blocks.button([460, 70], [100, 25], (130, 112, 255))
    c4.create(main_screen)
    lc4 = labelclass.Label([100, 25], [100, 25],
                           "choose your icecream container", 40)
    lc4.createlabel(main_screen)
    d4 = blocks.button([120, 50], [150, 550], (130, 112, 255))
    d4.create(main_screen)
    ld4 = labelclass.Label([175, 580], [120, 50], "Back", 30)
    ld4.createlabel(main_screen)
    e4 = blocks.button([120, 50], [300, 550], (130, 112, 255))
    e4.create(main_screen)
    le4 = labelclass.Label([325, 580], [120, 50], "Next", 30)
    le4.createlabel(main_screen)
コード例 #7
0
def draw4(main_screen):
	main_screen.fill((255,255,103))

	l4_1 = labelclass.Label([200,25],[150,75],"Toppings",50)
	l4_1.createlabel(main_screen)
	l4_2 = labelclass.Label([50,100],[200,50],"Syrups",35)
	l4_2.createlabel(main_screen)
	l4_3 = labelclass.Label([400,100],[200,50],"Other",35)
	l4_3.createlabel(main_screen)
	
	a4 = blocks.button([100,50],[50,150],(255,122,103))
	a4.create(main_screen)
	la4 = labelclass.Label([50,200],[100,25],"Chocolate Syrup",20)
	la4.createlabel(main_screen)	
	
	b4 = blocks.button([100,50],[50,250],(255,122,103))
	b4.create(main_screen)
	lb4 = labelclass.Label([50,300],[100,25],"Maple Syrup",20)
	lb4.createlabel(main_screen)	
	

	c4 = blocks.button([100,50],[400,150],(255,122,103))
	c4.create(main_screen)
	lc4 = labelclass.Label([400,200],[100,25],"Chocolate Chips",20)
	lc4.createlabel(main_screen)	
	d4 = blocks.button([100,50],[400,250],(255,122,103))
	d4.create(main_screen)
	ld4 = labelclass.Label([400,300],[100,25],"cherry",20)
	ld4.createlabel(main_screen)
	e4 = blocks.button([100,50],[400,350],(255,122,103))
	e4.create(main_screen)
	le4 = labelclass.Label([400,400],[100,25],"Sprinkles",20)
	le4.createlabel(main_screen)


	f4 = blocks.button([120,50],[150,550],(255,122,103))
	f4.create(main_screen)
	lf4 = labelclass.Label([150,550],[120,50],"Previous", 30)
	lf4.createlabel(main_screen)
	g4 = blocks.button([120,50],[300,550],(255,122,103))
	g4.create(main_screen)
	lg4 = labelclass.Label([300,550],[120,50],"Next", 30)
	lg4.createlabel(main_screen)
コード例 #8
0
def draw4(main_screen):
    main_screen.fill((255, 255, 103))

    l4_1 = labelclass.Label([200, 25], [150, 75], "Toppings", 50)
    l4_1.createlabel(main_screen)
    l4_2 = labelclass.Label([50, 100], [200, 50], "Syrups", 35)
    l4_2.createlabel(main_screen)
    l4_3 = labelclass.Label([400, 100], [200, 50], "Other", 35)
    l4_3.createlabel(main_screen)

    a4 = blocks.button([100, 50], [50, 150], (255, 122, 103))
    a4.create(main_screen)
    la4 = labelclass.Label([50, 200], [100, 25], "Chocolate Syrup", 20)
    la4.createlabel(main_screen)

    b4 = blocks.button([100, 50], [50, 250], (255, 122, 103))
    b4.create(main_screen)
    lb4 = labelclass.Label([50, 300], [100, 25], "Maple Syrup", 20)
    lb4.createlabel(main_screen)

    c4 = blocks.button([100, 50], [400, 150], (255, 122, 103))
    c4.create(main_screen)
    lc4 = labelclass.Label([400, 200], [100, 25], "Chocolate Chips", 20)
    lc4.createlabel(main_screen)
    d4 = blocks.button([100, 50], [400, 250], (255, 122, 103))
    d4.create(main_screen)
    ld4 = labelclass.Label([400, 300], [100, 25], "cherry", 20)
    ld4.createlabel(main_screen)
    e4 = blocks.button([100, 50], [400, 350], (255, 122, 103))
    e4.create(main_screen)
    le4 = labelclass.Label([400, 400], [100, 25], "Sprinkles", 20)
    le4.createlabel(main_screen)

    f4 = blocks.button([120, 50], [150, 550], (255, 122, 103))
    f4.create(main_screen)
    lf4 = labelclass.Label([150, 550], [120, 50], "Previous", 30)
    lf4.createlabel(main_screen)
    g4 = blocks.button([120, 50], [300, 550], (255, 122, 103))
    g4.create(main_screen)
    lg4 = labelclass.Label([300, 550], [120, 50], "Next", 30)
    lg4.createlabel(main_screen)
コード例 #9
0
    vanilla = True
    update = True
    stepNum = 0
    while True:
        ev = pygame.event.poll()
        if ev.type == pygame.MOUSEBUTTONDOWN:
            x, y = ev.pos

            if welcomscreen.p1.button_rec.collidepoint(x, y):
                clear_screen(255, 255, 255)
                main_screen.fill((255, 182, 193))

                lp1 = labelclass.Label([200, 45], [200, 40], "Choose Size", 50)
                lp1.createlabel(main_screen)

                a1 = blocks.button([80, 60], [100, 200], (232, 148, 172))
                a1.create(main_screen)
                aimage = picture.Picture(100, 280, [60, 100], "cups.png")
                aimage.draw(main_screen)

                b1 = blocks.button([80, 60], [250, 200], (232, 148, 172))
                b1.create(main_screen)
                bimage = picture.Picture(250, 280, [60, 100], "mediumcone.jpg")
                bimage.draw(main_screen)

                c1 = blocks.button([80, 60], [400, 200], (232, 148, 172))
                c1.create(main_screen)
                cimage = picture.Picture(400, 280, [60, 100], "cone.png")
                cimage.draw(main_screen)
                stepNum = 1
            if stepNum == 1 and update == True:
コード例 #10
0
    vanilla = True
    update = True
    stepNum = 0
    while True:
        ev = pygame.event.poll()
        if ev.type == pygame.MOUSEBUTTONDOWN:
            x, y = ev.pos

            if welcomscreen.p1.button_rec.collidepoint(x, y):
                clear_screen(255, 255, 255)
                main_screen.fill((255, 182, 193))

                lp1 = labelclass.Label([200, 45], [200, 40], "Choose Size", 50)
                lp1.createlabel(main_screen)

                a1 = blocks.button([80, 60], [100, 200], (232, 148, 172))
                a1.create(main_screen)
                aimage = picture.Picture(100, 280, [60, 100], "cups.png")
                aimage.draw(main_screen)

                b1 = blocks.button([80, 60], [250, 200], (232, 148, 172))
                b1.create(main_screen)
                bimage = picture.Picture(250, 280, [60, 100], "mediumcone.jpg")
                bimage.draw(main_screen)

                c1 = blocks.button([80, 60], [400, 200], (232, 148, 172))
                c1.create(main_screen)
                cimage = picture.Picture(400, 280, [60, 100], "cone.png")
                cimage.draw(main_screen)
                stepNum = 1
            if stepNum == 1 and update == True: