vbar = tk.Scrollbar(self, orient=tk.VERTICAL)
vbar.config(command=self.yview)
vbar.pack(side=tk.RIGHT, fill=tk.Y, pady=(0, 16))
hbar = tk.Scrollbar(self, orient=tk.HORIZONTAL)
hbar.config(command=self.xview)
hbar.pack(side=tk.BOTTOM, fill=tk.X)
self.config(background='white', yscrollcommand=vbar.set, xscrollcommand=hbar.set)
self.focus_set()
self.assoc_links = {}
self.element_group = {}
self.group_location = {}
self.connecting_lines = {}
self.lines = set()
self.layers = []
self.to_move = {}
self.elems = []
self.tmp_line = None
self.currently_selected = None
self.loading = [tk.PhotoImage(file="icons/loading.gif", format="gif -index %i" % i) for i in range(8)]
self.destroy()