summaryrefslogtreecommitdiff
path: root/gui.py
blob: bc91597a22aa7f5fd8e529f6d763ed70e5af36f2 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This file is part of Marius Peter's airfoil analysis package (this program).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.


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