declare_initialize_variables.py 2.1 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
 58
 59
 60
 61
 62
 63
 64
 65
 66
# Author: Brice Colombier
# Laboratoire Hubert Curien
# 42000 Saint-Etienne - France
# Contact: b.colombier@univ-st-etienne.fr
# Project: Demonstrator
# File: declare_initialize_variables.py
# Date: 2016-10-13

from Tkinter import *
from ttk import *


def declare_initialize_variables(self):
"""Declare and initialize the GUI variables"""

self.masking = BooleanVar()
self.locking = BooleanVar()
self.daughter_board = StringVar()
self.daughter_board.set("S6")
self.PUF_response_displayed = StringVar()
self.PUF_response_displayed.set(256*" ")
self.filepath = StringVar()
self.filename = StringVar()
self.filename.set("No design loaded")
self.com_port = StringVar()
self.com_port.set("COM5")
self.masking_overhead = IntVar()
self.masking_overhead.set(5)
self.locking_overhead = IntVar()
self.locking_overhead.set(5)

self.graph_info = StringVar()
self.graph_info.set("")

self.masking_heuristic = StringVar()
self.masking_heuristic.set("random")
self.connected = BooleanVar()
self.connected.set(False)

self.message_key_saved = StringVar()
self.message_key_saved.set("")
self.message_AW_saved = StringVar()
self.message_AW_saved.set("")
self.message_modified_design_saved = StringVar()
self.message_modified_design_saved.set("")

self.status = StringVar()
self.status.set("")
self.board_status = StringVar()
self.board_status.set("Board not connected")
self.save_as_reference_response_status = StringVar()
self.save_as_reference_response_status.set("")

self.activation_word_file = StringVar()
self.activation_word_file.set("")
self.design_format = StringVar()
self.design_format.set("BENCH")
self.generated_design_format = StringVar()
self.generated_design_format.set("bench")
self.programming_command = StringVar()
self.programming_command.set("")
self.server_reference_response_displayed = StringVar()
self.server_reference_response_displayed.set("")
self.server_reference_response_file = StringVar()
self.server_reference_response_file.set("")