summaryrefslogtreecommitdiff
path: root/gui.py
blob: f7875e914d54a405402240f18237ab0d27f94b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import tkinter as tk
from tkinter import ttk


class Input:
    '''User inputs.'''

    def __init__(self, master):
        ttk.Frame(master).grid(row=0, column=0)
        ttk.Label(master, text='NACA Number').grid(row=0, sticky='W')
        ttk.Label(master, text='Chord Length').grid(row=1, sticky='W')
        ttk.Entry(master).grid(row=0, column=1)
        ttk.Entry(master).grid(row=1, column=1)


class Graph:
    '''Graph airfoil.'''

    def __init__(self, master):
        ttk.Frame(master).grid(row=0, column=1)


def main():
    root = tk.Tk()
    root.title('MAE 154B - Airfoil Design, Evaluation, Optimization')
    root.geometry('1000x400')

    Input(root)
    Graph(root)
    root.mainloop()
    return None


if __name__ == '__main__':
    main()
Copyright 2019--2024 Marius PETER