Ejemplo n.º 1
0
    def append_wb(self, number):
        last_waffle = len(self.waffle_list)
        for i in range(0, 2* number, 2):
            w = Waffle(self.bottom_box, height=self.no_bits, width=1, grid=[last_waffle + i, 0])
            w.hide()
            w.when_clicked = self.process_waffle
            self.waffle_list.append(w)

            b = Box(self.bottom_box, grid=[i + 1, 0])
            b.hide()
            self.box_list.append(b)
Ejemplo n.º 2
0
# this is the menu window
menu_window = Box(app, grid=[0, 0])

title = Text(menu_window, "PokeMatch", size=24, color="dodger blue")
instructions = Text(
    menu_window,
    "Its so simple...  Just find the pokemon on the right that matches one on the left."
)
instructions.font = "Verdana"
start = PushButton(menu_window, command=start_game, text="Start")
start.bg = "dodger blue"

# this is the playing window
game_window = Box(app, layout="grid", grid=[0, 1])
game_window.hide()

player_message = Text(game_window,
                      "Match the pokemon",
                      grid=[0, 0, 3, 1],
                      size=16)
timer = Text(game_window, grid=[0, 1], size=16)
score = Text(game_window, grid=[2, 1], size=16)

picture_grid = Box(game_window, layout="grid", grid=[0, 2])
picture_grid.bg = "royal blue"

seperator = Text(game_window,
                 text=">",
                 size=24,
                 color="dodger blue",
Ejemplo n.º 3
0
                      font="Times New Roman",
                      color="black",
                      align="top")
pizzaGif = Picture(app, image="homer.gif")

#menu
menuMessage = Text(app,
                   text="Main Menu",
                   size=25,
                   font="Times New Roman",
                   color="black",
                   align="top")
menuMessage.hide()

buttonsBox = Box(app, border=1, grid=[0, 1], align="top", layout="grid")
buttonsBox.hide()

customButton = PushButton(buttonsBox,
                          command=customScreen,
                          text="Customize a Pizza",
                          align="top",
                          width="17",
                          grid=[0, 0])
specialButton = PushButton(buttonsBox,
                           command=specialScreen,
                           text="Specialty Pizza",
                           align="top",
                           width="17",
                           grid=[0, 1])
mealsButton = PushButton(buttonsBox,
                         command=mealsScreen,
Ejemplo n.º 4
0
welcomeBox = Box(app, border=0, align="top")
buttonBox1 = Box(app, width="fill", align="bottom")

prisonmike = Picture(welcomeBox, image="prisonmike.gif", align="top")

insultButton = PushButton(buttonBox1, text="Generate Insult", command = insultScreen, align="bottom")
insultButton.text_size = 15
insultButton.font = "Free Mono"
insultButton.bg = "firebrick3"
insultButton.text_color = "snow"


    
#insult screen
insultBox = Box(app, border=0, align="top")
insultBox.hide()
buttonBox2 = Box(app, width="fill", align="bottom")
buttonBox2.hide()

backButton1 = PushButton(buttonBox2, text="<< Back", command=welcomeScreen, align = "left")
backButton1.text_size = 15
backButton1.font = "Free Mono"
backButton1.bg = "firebrick3"
backButton1.text_color = "snow"

cyoButton = PushButton(buttonBox2, text="Create your own", command=cyoScreen, align = "right")
cyoButton.text_size = 15
cyoButton.font = "Free Mono"
cyoButton.bg = "firebrick3"
cyoButton.text_color = "snow"