예제 #1
0
def getOneNumber():
    a = input("number? ")
    a = check_memory_function(a)
    try:
        c = float(a)
        return c
    except ValueError:
        print("Error!")
        menu.run_menu()
def back_to(to):
	global gui
	gui.stop()
	del gui
	console.clear()

	if to == "menu":
		from menu import run_menu
		run_menu()
	elif to == "editor":
		run_editor()
예제 #3
0
def getTwoNumbers():
    a = input("first number? ")
    b = input("second number? ")
    a = check_memory_function(a)
    b = check_memory_function(b)
    try:
        c = float(a)
        d = float(b)
        return c, d
    except ValueError:
        print("Error!")
        menu.run_menu()
예제 #4
0
 def losing_sequence(self):
     while len(self.hearts) > 0:
         self.hearts.update()
         self.screen.blit(self.map_img,
                          self.camera.apply_rect(self.map_rect))
         for sprite in self.moving_sprites:
             self.screen.blit(sprite.image, self.camera.apply(sprite))
         for sprite in self.static_sprites:
             self.screen.blit(sprite.image, sprite.rect)
         pg.display.flip()
     self.draw_text("You died", pg.font.SysFont('Arial', 60, 'bold'),
                    DARKRED, self.screen,
                    self.camera.apply(self.player).centerx + 10,
                    self.camera.apply(self.player).centery)
     pg.display.flip()
     time.sleep(3)
     menu.run_menu()
예제 #5
0
def performCalcLoop():
    print("Welcome to the calculator")
    print(
        "Type MRC at any time when being asked for number to recall a value that you saved to memory."
    )
    while True:
        result = menu.run_menu()
        if result == "exit":
            break
예제 #6
0
def main():
    if len(sys.argv) == 3 and sys.argv[1] == "--debug":
        username, server_code = sys.argv[2].split(":")
        player = Player(username,
                        server_code)  #, url="http://localhost", port=51337)
    else:
        player = run_menu(surface, font, clock)

    while True:
        minigame_name = run_game(player, surface, font, clock)

        # run a minigame
        module = import_module('minigames.{}'.format(minigame_name))
        minigame = getattr(module, 'main')
        minigame(player, surface, font, clock)
예제 #7
0
파일: run.py 프로젝트: yjad/freelancer
import os
# from summary import combine_csv
from menu import run_menu
# from print_text_table import print_query

#DATA_FOLDER = r"C:\Users\yahia\Documents\Qradar\09-2020\QRadar-Vulnerabilities-SAN"
# DATA_FOLDER=r"C:\Users\yahia\Documents\Qradar\09-2020 - Copy\Microsoft-Servers"

# DB_FILE_NAME = r"E:\Yahia-Home\Python\src\Freelancer\vulnerability\data\vulneravility.sqlite"
if __name__ == '__main__':

    #combine_all()
    #check_header()
    #mini_all()
    #combine_csv()
    #load_db(r"C:\Users\yahia\Documents\Qradar\09-2020 - Copy")
    #excel_to_csv (r"C:\Users\yahia\Documents\Qradar\09-2020 - Copy")
    # stats_by_ip(os.path.join(OUT_FOLDER, "stats_by_ip.xlsx"))
    # SAN_stats(os.path.join(OUT_FOLDER, "SAN_stats.xlsx"))
    # VLAN_stats(os.path.join(OUT_FOLDER, "VLAN_stats.xlsx"))
    #load_classification(r"C:\Users\yahia\Documents\Qradar\09-2020")
    # stats_by_vlan_group(os.path.join(OUT_FOLDER, "stats_by_vlan_group.xlsx"))
    run_menu()
    # treeview()
    # print_query_text(None, None, None)
예제 #8
0
                self.screen.blit(sprite.image, sprite.rect)
            pg.display.flip()
        self.draw_text("You died", pg.font.SysFont('Arial', 60, 'bold'),
                       DARKRED, self.screen,
                       self.camera.apply(self.player).centerx + 10,
                       self.camera.apply(self.player).centery)
        pg.display.flip()
        time.sleep(3)
        menu.run_menu()

    def attack_sequence(self):
        pass


def run_game(mode):
    #create game
    g = Game(mode)
    while True:
        g.new()
        g.beginning_sequence()
        g.run()


#   Music
pg.init()
pg.mixer.music.load(MAIN_MUSIC_FILE)
pg.mixer.music.play(-1)
#   Run Game
menu.game_function = run_game
menu.run_menu()
예제 #9
0
def main():
    display.init(3.0, "BubbMan", res=GBRES)
    menu.run_menu()
예제 #10
0
def main():
    display.init(3.0, "BubbMan", res=GBRES)
    menu.run_menu()
예제 #11
0
import menu
from database import Database


Database.initialize()

menu = menu.Menu()
menu.run_menu()

def main():
    display.init(2.5, "Johnny Ashtray and The Greyscale Tower", res=GBRES)
    menu.run_menu()
예제 #13
0
파일: main.py 프로젝트: 2065983Y/spinner
def main():
    display.init(3.0, "Spinner",  GBRES)
    menu.run_menu()
예제 #14
0
파일: main.py 프로젝트: Nevon/Crashtronaut
def main():

    display.init(3.0, "Crashtronaut", res=GBRES, icon="gfx/player-1.png")
    menu.run_menu()