# -*- coding: utf-8 -*-
"""
gridレイアウトとFrame
"""

import tkinter as tk


def main():
    base = tk.Tk()
    base.title("$u_id")

    frame = tk.Frame(base)

    bt1 = tk.Button(base, text="1", width=16, height=4)
    bt2 = tk.Button(base, text="2", width=16, height=4)
    bt3 = tk.Button(base, text="3", width=16, height=4)
    bt4 = tk.Button(frame, text="4", width=8, height=2)
    bt5 = tk.Button(frame, text="5", width=8, height=2)
    bt6 = tk.Button(frame, text="6", width=8, height=2)

    """ 指示ここから """
    # 課題ページの図にあるようなレイアウトになるよう
    # 命令を書きなさい．

    bt1.grid(row=0, column=0)
    bt2.grid(row=0, column=1)
    bt3.grid(row=1, column=0)
    frame.grid(row=1, column=1)

    bt4.grid(row=0, column=1)
    bt5.grid(row=1, column=0)
    bt6.grid(row=1, column=1)
    """ 指示ここまで """

    base.mainloop()  # GUIを待機


if __name__ == "__main__":
    main()
