Esempio n. 1
0
def main():
    window = Tk()
    window.geometry("450x400")
    window.title("Fruity Slots")
    ui = UI(window)  # pylint: disable=invalid-name
    ui.start()
    window.mainloop()
Esempio n. 2
0
def main():
    window = Tk()
    window.title("Osakeseuranta")

    ui = UI(window)
    ui.start()

    window.mainloop()
Esempio n. 3
0
def main():
    window = Tk()
    window.title('CipherToolsApp')

    ui = UI(window)
    ui.start()

    window.mainloop()
Esempio n. 4
0
def main():
    window = Tk()
    window.title("Budjetointisovellus")

    ui_ui = UI(window)
    ui_ui.start()

    window.mainloop()
Esempio n. 5
0
def main():
    window = Tk()
    window.title('TodoApp')

    ui = UI(window)
    ui.start()

    window.mainloop()
Esempio n. 6
0
def main():
    window = Tk()
    window.title("Markdown Editor")

    ui = UI(window)
    ui.start()

    window.mainloop()
Esempio n. 7
0
def main():
    window = Tk()
    window.title("RiddleGen")

    ui_main = UI(window)
    ui_main.start()

    window.mainloop()
Esempio n. 8
0
def main():
    """Alustellaan tarvittavat kirjastot ja lähdetään ajamaan ohjelmaa
    """
    window = Tk()

    ui = UI(window)
    ui.start()
    window.mainloop()
Esempio n. 9
0
def main():

    window = Tk()
    window.title("Course Tracker Application")

    ui = UI(window)
    ui.start()

    window.mainloop()
Esempio n. 10
0
def main():
    initialize_database()
    window = Tk()
    window.title("TÄTI")

    u_int = UI(window)
    u_int.start()

    window.mainloop()
Esempio n. 11
0
def main():
    '''creating the window loop for the app'''
    window = Tk()
    window.title("Kierrätys")

    ui = UI(window)
    ui.start()

    window.mainloop()
Esempio n. 12
0
def main():

    window = Tk()
    window.title("Probability quiz")

    ui = UI(window)
    ui.start()

    window.mainloop()
Esempio n. 13
0
def main():

    window = Tk()
    window.title("Opinnot")

    ui = UI(window)
    ui.start()

    window.mainloop()
Esempio n. 14
0
def main():
    window = Tk()
    window.title("OTConverter")
    window.minsize(700, 400)
    window.resizable(False, False)

    ui = UI(window)
    ui.start()

    window.mainloop()
Esempio n. 15
0
def main():
    window = Tk()
    window.title("Zero salt rounds")
    window.geometry("1200x800")

    # remove when register is working
    initialize_db()

    ui = UI(window)
    ui.start()
    window.mainloop()
Esempio n. 16
0
def main():

    clRepo = readFromFile("clientRepo.pickle")
    mvRepo = readFromFile("movieRepo.pickle")
    rtRepo = readFromFile("rentalRepo.pickle")
    st = store()
    find = finder(clRepo, mvRepo)
    undoC = undoController()
    clc = clientController(clRepo, undoC)
    mvc = movieController(mvRepo, undoC)
    rtc = rentalController(rtRepo, clRepo, mvRepo, st, undoC)
    rmc = removalController(clRepo, mvRepo, rtRepo, undoC, rtc)
    CL = controller(clc, mvc, rtc, rmc, undoC, find)
    u = UI(CL)
    u.start()
Esempio n. 17
0
def main():
    """Call this to start the program.
    """
    window = Tk()
    window.title("Arithmetician")
    database = Database()

    if not database.is_db_connection_ok():
        print(
            f"Failed to connect to database: {Config.DB_FILENAME}. Exiting..")
        return

    gui = UI(window, MainService(UserRepository(database)))
    gui.start()
    window.geometry("350x500")
    window.mainloop()
Esempio n. 18
0
def main():
    """Luo peli-ikkunan ja aloituspainikkeen.

    """

    from ui.ui import UI
    _win = pygame.display.set_mode((700, 550))
    pygame.display.set_caption("Sudoku")
    _win.fill((38, 38, 38))

    _x, _y = (530, 100)
    _font = pygame.font.SysFont("Arial", 35)
    _text = _font.render("Uusi peli", 1, "white")
    pygame.draw.rect(_win, "green", (_x - 10, _y - 10, 155, 60))
    _win.blit(_text, (_x, _y))

    pygame.display.update()

    _ui = UI(_win)
    _ui.start()
Esempio n. 19
0
def main():
    window = Tk()

    window.title("Ruokalistageneraattori")
    window.configure(bg="#FFFFEA")

    if Path(ICON_PATH).is_file():
        icon = PhotoImage(file=ICON_PATH)
        window.tk.call('wm', 'iconphoto', window._w, icon)  # pylint: disable=protected-access

    check = InputOutput().read("SELECT * FROM meals")

    if not isinstance(check, list):
        text = "Suorita komento poetry run invoke build ennen ohjelman ensimmäistä käynnistystä!"
        label = ttk.Label(window, text=text, padding=200)
        label.pack()
    else:
        user_interface = UI(window)
        user_interface.start()

    window.mainloop()
Esempio n. 20
0
def main():
    # Build the database if it does not exist
    initialise_database()

    # Create the imgcards and imguser folders if they do not exist
    if not os.path.exists(CARD_IMAGES_FILE_PATH):
        os.makedirs(CARD_IMAGES_FILE_PATH)
    if not os.path.exists(USER_IMAGES_FILE_PATH):
        os.makedirs(USER_IMAGES_FILE_PATH)
    if not os.path.exists(USER_FILES_FILE_PATH):
        os.makedirs(USER_FILES_FILE_PATH)

    # Create the Qt Application
    app = QApplication(sys.argv)
    app.setApplicationName("KorttiKube")

    ui = UI()
    ui.start()
    ui.current_view.show()

    # Run the main Qt loop
    sys.exit(app.exec_())
Esempio n. 21
0
from Model.board import Board
from Model.ai import Ai
from Game.game import Game
from ui.ui import UI

if __name__ == '__main__':
    b = Board()
    a = Ai(b)
    g = Game(b, a)
    u = UI(g)
    u.start()
Esempio n. 22
0
def main():
    service = RecipeService()
    window = Tk()
    user_interface = UI(window, service)
    user_interface.start()
    window.mainloop()
Esempio n. 23
0
import sys
from entities.client import Client
from PyInquirer import prompt
from ui import menu_template
from ui.ui import UI

client = Client()
username = prompt(menu_template.input_name)['value']
if client.is_exists(username):
    client.connect(username)
else:
    if len(sys.argv) > 1 and sys.argv[1] == 'owner':
        client.add_owner(username)
    elif len(sys.argv) > 1 and sys.argv[1] == 'admin':
        client.add_admin(username)
    else:
        client.add_user(username)
    client.connect(username)

ui = UI(username)
ui.start()
Esempio n. 24
0
def main():
	ct = controller()
	ui = UI(ct)
	ui.start()