# Path: de/hochschuletrier/jpy/overlays/Overlay.py
# class Overlay(Frame):
# 	def __init__(self, *args, **kwargs):
# 		self.overlayName = kwargs["overlayName"]
# 		self.root = args[0]
# 		self.id = kwargs["id"]
# 		self.text = StringVar()
# 		self.image = None
# 		self.isVisible = False
# 		Frame.__init__(self, self.root)
# 		self.config(
# 			padx=50,
# 			pady=50,
# 			relief="solid",
# 			bd=35,
# 			highlightbackground="black"
# 		)
# 		self.place(x=60, y=60, relwidth=1, relheight=1, width=-120, height=-120)
# 
# 	def hide(self, event):
# 		self.lower()
# 		self.isVisible = False
# 
# Path: de/hochschuletrier/jpy/Constants.py
# class Constants:
# 	SCREENW = 0
# 	SCREENH = 0
# 	COLORS = ["red", "green", "purple", "brown", "black", "yellow"]
# 
# class Fonts:
# 	MONEY_BIG = 0
# 	MONEY_SMALL = 0
# 	MONEY_MEDIUM = 0
# 	SYSTEM_REGULAR = 0
# 	SYSTEM_BIG = 0
# 	USER_LABEL_NAME = 0
# 	USER_LABEL_NAME_BIG = 0
# 
# 	@staticmethod
# 	def construct():
# 		Fonts.USER_LABEL_NAME = Font(family="Ubuntu", size=Fonts.sizing(18), weight="normal")
# 		Fonts.USER_LABEL_NAME_BIG = Font(family="Ubuntu", size=Fonts.sizing(30), weight="normal")
# 		Fonts.MONEY_BIG = Font(family="Swiss911 UCm BT", size=Fonts.sizing(65), weight="normal")
# 		Fonts.MONEY_SMALL = Font(family="Swiss911 UCm BT", size=Fonts.sizing(20), weight="normal")
# 		Fonts.SYSTEM_BIG = Font(family="Times New Roman", size=Fonts.sizing(45), weight="normal")
# 		Fonts.SYSTEM_REGULAR = Font(family="Times New Roman", size=Fonts.sizing(25), weight="normal")
# 		Fonts.MONEY_MEDIUM = Font(family="Swiss911 UCm BT", size=Fonts.sizing(38), weight="normal")
# 
# 	@staticmethod
# 	def sizing(percentage):
# 		size = int(round(Constants.SCREENH / 7 * float(percentage) / 100))
# 		return size


from de.hochschuletrier.jpy.overlays.Overlay import Overlay
from de.hochschuletrier.jpy.Constants import Constants, Fonts
from Tkinter import Label
from PIL import Image, ImageTk
		Overlay.__init__(self, *args, **kwargs)
		self.label = ""
		self.config(background="blue")
		self.audio = ""
		self.lastButton = ""
		self.drawLabel()

	def drawLabel(self):
		self.label = Label(self)
		self.label.config(
			textvar=self.text,
			font=Fonts.SYSTEM_BIG,
			background=self["background"],
			foreground="white",
			wraplength=Constants.SCREENW * 0.8
		)

		self.label.place(relwidth=1, relheight=1)

	def highlight(self, color):
		self.config(background=color)
		self.label.config(background=color)
		return

	def normalize(self):
		self.config(background="blue")
		self.label.config(background="blue")
		return

	def hide(self, event):

# Path: de/hochschuletrier/jpy/overlays/Overlay.py
# class Overlay(Frame):
# 	def __init__(self, *args, **kwargs):
# 		self.overlayName = kwargs["overlayName"]
# 		self.root = args[0]
# 		self.id = kwargs["id"]
# 		self.text = StringVar()
# 		self.image = None
# 		self.isVisible = False
# 		Frame.__init__(self, self.root)
# 		self.config(
# 			padx=50,
# 			pady=50,
# 			relief="solid",
# 			bd=35,
# 			highlightbackground="black"
# 		)
# 		self.place(x=60, y=60, relwidth=1, relheight=1, width=-120, height=-120)
# 
# 	def hide(self, event):
# 		self.lower()
# 		self.isVisible = False
# 
# Path: de/hochschuletrier/jpy/Constants.py
# class Constants:
# 	SCREENW = 0
# 	SCREENH = 0
# 	COLORS = ["red", "green", "purple", "brown", "black", "yellow"]
# 
# class Fonts:
# 	MONEY_BIG = 0
# 	MONEY_SMALL = 0
# 	MONEY_MEDIUM = 0
# 	SYSTEM_REGULAR = 0
# 	SYSTEM_BIG = 0
# 	USER_LABEL_NAME = 0
# 	USER_LABEL_NAME_BIG = 0
# 
# 	@staticmethod
# 	def construct():
# 		Fonts.USER_LABEL_NAME = Font(family="Ubuntu", size=Fonts.sizing(18), weight="normal")
# 		Fonts.USER_LABEL_NAME_BIG = Font(family="Ubuntu", size=Fonts.sizing(30), weight="normal")
# 		Fonts.MONEY_BIG = Font(family="Swiss911 UCm BT", size=Fonts.sizing(65), weight="normal")
# 		Fonts.MONEY_SMALL = Font(family="Swiss911 UCm BT", size=Fonts.sizing(20), weight="normal")
# 		Fonts.SYSTEM_BIG = Font(family="Times New Roman", size=Fonts.sizing(45), weight="normal")
# 		Fonts.SYSTEM_REGULAR = Font(family="Times New Roman", size=Fonts.sizing(25), weight="normal")
# 		Fonts.MONEY_MEDIUM = Font(family="Swiss911 UCm BT", size=Fonts.sizing(38), weight="normal")
# 
# 	@staticmethod
# 	def sizing(percentage):
# 		size = int(round(Constants.SCREENH / 7 * float(percentage) / 100))
# 		return size


# Path: de/hochschuletrier/jpy/overlays/QuestionOverlay.py
from de.hochschuletrier.jpy.overlays.Overlay import Overlay
from de.hochschuletrier.jpy.Constants import Constants, Fonts
from Tkinter import Label
from PIL import Image, ImageTk

		Overlay.__init__(self, *args, **kwargs)
		self.label = ""
		self.config(background="blue")
		self.audio = ""
		self.lastButton = ""
		self.drawLabel()

	def drawLabel(self):
		self.label = Label(self)
		self.label.config(
			textvar=self.text,
			font=Fonts.SYSTEM_BIG,
			background=self["background"],
			foreground="white",
			wraplength=Constants.SCREENW * 0.8
		)

		self.label.place(relwidth=1, relheight=1)

	def highlight(self, color):
		self.config(background=color)
		self.label.config(background=color)
		return

	def normalize(self):
		self.config(background="blue")
		self.label.config(background="blue")
		return

	def hide(self, event):

		Overlay.hide(self, event)