# 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 Tkinter import *
from de.hochschuletrier.jpy.Constants import Constants, Fonts


class JPYLabel(Frame):
	def __init__(self, *args, **kwargs):
		Frame.__init__(self, *args)
		self.label = ""
		self.text = kwargs["text"]
		self.font = Fonts.SYSTEM_REGULAR
		self.config(
			width=Constants.SCREENW / 6 + 1,
			height=Constants.SCREENH / 7,
			background="#FFCC00"
		)
		self.pack_propagate(0)
		self.innerLabel()

	def innerLabel(self):
		self.label = Label(self, text=self.text)
		self.label.config(
			background="blue",
			foreground="white",
			bd=5,
			relief="solid",
			font=self.font,

# 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/ui/JPYLabel.py
from Tkinter import *
from de.hochschuletrier.jpy.Constants import Constants, Fonts



class JPYLabel(Frame):
	def __init__(self, *args, **kwargs):
		Frame.__init__(self, *args)
		self.label = ""
		self.text = kwargs["text"]
		self.font = Fonts.SYSTEM_REGULAR
		self.config(
			width=Constants.SCREENW / 6 + 1,
			height=Constants.SCREENH / 7,
			background="#FFCC00"
		)
		self.pack_propagate(0)
		self.innerLabel()

	def innerLabel(self):
		self.label = Label(self, text=self.text)
		self.label.config(
			background="blue",
			foreground="white",
			bd=5,
			relief="solid",
			font=self.font,

			wraplength=Constants.SCREENW / 6