# 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
from math import *
			padx=5,
			cursor="man"
		)
		self.pack_propagate(0)
		self.pointsLabel()
		self.nameLabel()

	def nameLabel(self):
		self.nLabel = Label(self)
		self.nLabel.config(
			textvariable=self.user.name,
			background=self.bgcolor,
			foreground="white",
			bd=0,
			relief="solid",
			font=self.nameFont,
			wraplength=Constants.SCREENW / self.width
		)
		self.nLabel.pack(fill=BOTH, expand=1)

	def pointsLabel(self):
		self.label = Label(self)
		# self.label.bind("<Button-1>", self.edit.show(self.user))
		self.label.config(
			textvariable=self.user.points,
			background=self.bgcolor,
			foreground="white",
			bd=0,
			relief="solid",
			font=self.pointsFont,

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

			padx=5,
			cursor="man"
		)
		self.pack_propagate(0)
		self.pointsLabel()
		self.nameLabel()

	def nameLabel(self):
		self.nLabel = Label(self)
		self.nLabel.config(
			textvariable=self.user.name,
			background=self.bgcolor,
			foreground="white",
			bd=0,
			relief="solid",
			font=self.nameFont,
			wraplength=Constants.SCREENW / self.width
		)
		self.nLabel.pack(fill=BOTH, expand=1)

	def pointsLabel(self):
		self.label = Label(self)
		# self.label.bind("<Button-1>", self.edit.show(self.user))
		self.label.config(
			textvariable=self.user.points,
			background=self.bgcolor,
			foreground="white",
			bd=0,
			relief="solid",
			font=self.pointsFont,

			wraplength=Constants.SCREENW / self.width