declare_pack_frames.py 2.35 KB
  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
 52
 53
 54
 55
 56
 57
# Author: Brice Colombier
# Laboratoire Hubert Curien
# 42000 Saint-Etienne - France
# Contact: b.colombier@univ-st-etienne.fr
# Project: Demonstrator
# File: declare_pack_frames.py
# Date: 2016-10-13

from Tkinter import *
from ttk import *


def declare_pack_frames(self):
"""Declare the main GUI frames and pack them"""

# Tab logic modifier

self.file_frame = LabelFrame(self.tab_logic_modifier, text="Current design")
self.file_frame.pack(side=TOP, fill=X)
self.file_frame.grid_columnconfigure(1, weight=1)
self.modify_design_frame = LabelFrame(self.tab_logic_modifier, text="Modify design")
self.modify_design_frame.pack(fill="x")
self.generate_modified_design_frame = LabelFrame(self.tab_logic_modifier,
text="Generate modified design")
self.generate_modified_design_frame.pack(fill="x")

# Tab HECTOR board management
self.motherboard_frame = LabelFrame(self.tab_HECTOR_board_management, text="HECTOR motherboard")
self.motherboard_frame.pack(side=TOP, fill=X)
# Tab enrolment

self.get_PUF_response_frame = LabelFrame(self.tab_enrolment,
text="PUF response")
self.get_PUF_response_frame.pack(fill="x", side="top")
self.key_derivation_frame = LabelFrame(self.tab_enrolment,
text="Key derivation")
self.key_derivation_frame.pack(fill="x", side="top")
# Tab activation
self.load_server_reference_response_frame = LabelFrame(self.tab_activation,
text="Load server reference response")
self.load_server_reference_response_frame.pack(fill="x")
self.CASCADE_frame = LabelFrame(self.tab_activation,
text="CASCADE protocol")
self.CASCADE_frame.pack(fill="x")
self.activation_word_encryption_frame = LabelFrame(self.tab_activation,
text="Activation word encryption")
self.activation_word_encryption_frame.pack(fill="x")
self.activation_word_encryption_frame.grid_columnconfigure(1, weight=1)
self.activation_process_frame = LabelFrame(self.tab_activation,
text="Activation process")
self.activation_process_frame.pack(fill="x")