# Path: de/hochschuletrier/jpy/states/GameState.py
# class GameState(Frame):
# 	def __init__(self, *args, **kwargs):
# 		self.stateName = kwargs["stateName"]
# 		self.root = args[0]
# 		self.id = kwargs["id"]
# 		Frame.__init__(self, self.root.mainWindow)
# 		self.config(
# 			background="gold"
# 		)
# 		self.place(relwidth=1, relheight=1)
# 
# Path: de/hochschuletrier/jpy/ui/TableProcessor.py
# class TableProcessor:
# 	cols = 6
# 	rows = 6
# 
# 	def __init__(self, parent, root):
# 		self.root = root
# 		self.parent = parent
# 		self.buildTableHead()
# 		self.buildTableBody()
# 		self.buildCandidates()
# 
# 	def buildTableHead(self):
# 		for header in range(6):
# 			JPYLabel(self.parent, text=self.root.questionManager.categories[header].name).grid(row=0, column=header)
# 
# 	def buildTableBody(self):
# 		for row in range(1, 6):
# 			for col in range(6):
# 				values = [100, 200, 300, 400, 500, 600]
# 				count = (row - 1) * 6 + col
# 				if self.root.questionManager.questionSet[col][row - 1] == 1:
# 					text = "$" + str(values[row - 1])
# 				# text = str((row - 1) * 6 + col)
# 				else:
# 					text = ""
# 				JPYButton(
# 					self.parent,
# 					root=self.root,
# 					question=self.root.questionManager.questions[self.root.questionManager.categories[col].name][row - 1],
# 					text=text,
# 					qCategory=self.root.questionManager.categories[col],
# 					double=(True if count in self.root.questionManager.double else False),
# 					worth=values[row - 1],
# 					questionID=[col, row - 1],
# 					borderwidth=1,
# 					category=self.root.questionManager.categories[col].type,
# 				).grid(row=row, column=col)
# 
# 	def buildCandidates(self):
# 		col = 0
# 		max = len(self.root.candidateManager.candidates)
# 		span = int(ceil(6 / max))
# 
# 		for candidate in self.root.candidateManager.candidates:
# 			cLabel = JPYUserLabel(self.parent, back=candidate.color, user=candidate)
# 			cLabel.grid(row=6, column=col, columnspan=span)
# 			col += span
# 
# 		if span == 1:
# 			for empty in range(6 - len(self.root.candidateManager.candidates)):
# 				JPYLabel(self.parent, background="black", text="").grid(row=6, column=len(
# 					self.root.candidateManager.candidates) + empty)
# 
# Path: de/hochschuletrier/jpy/overlays/OverlayManager.py
# class OverlayManager:
# 	def __init__(self, root):
# 		self.root = root
# 		self.activeOverlay = 0
# 		self.overlays = []
# 
# 		self.generateOverlays()
# 
# 	def generateOverlays(self):
# 		self.overlays.append(QuestionOverlay(self.root, overlayName="Frage", id=0))
# 		self.overlays.append(UsernameOverlay(self.root, overlayName="Username", id=1))
# 		self.overlays.append(DoubleOverlay(self.root, overlayName="Double Jeopardy", id=2))
# 
# 		for overlay in self.overlays:
# 			overlay.lower()
# 
# 	def showOverlay(self, overlay):
# 		if overlay > len(self.overlays) - 1:
# 			return
# 		if self.overlays[overlay].id == 1 or self.overlays[overlay].id == 2:
# 			self.overlays[overlay].field.bind("<Return>", self.overlays[overlay].save)
# 			self.overlays[overlay].field.focus_set()
# 		self.overlays[self.activeOverlay].lower()
# 		self.overlays[overlay].lift(aboveThis=None)
# 		self.overlays[overlay].isVisible = True
# 		self.activeOverlay = overlay


from de.hochschuletrier.jpy.states.GameState import GameState
from de.hochschuletrier.jpy.ui.TableProcessor import TableProcessor
from de.hochschuletrier.jpy.overlays.OverlayManager import OverlayManager
__author__ = 'miko'


class PlayGameState(GameState):
	def __init__(self, *args, **kwargs):

# Path: de/hochschuletrier/jpy/states/GameState.py
# class GameState(Frame):
# 	def __init__(self, *args, **kwargs):
# 		self.stateName = kwargs["stateName"]
# 		self.root = args[0]
# 		self.id = kwargs["id"]
# 		Frame.__init__(self, self.root.mainWindow)
# 		self.config(
# 			background="gold"
# 		)
# 		self.place(relwidth=1, relheight=1)
# 
# Path: de/hochschuletrier/jpy/ui/TableProcessor.py
# class TableProcessor:
# 	cols = 6
# 	rows = 6
# 
# 	def __init__(self, parent, root):
# 		self.root = root
# 		self.parent = parent
# 		self.buildTableHead()
# 		self.buildTableBody()
# 		self.buildCandidates()
# 
# 	def buildTableHead(self):
# 		for header in range(6):
# 			JPYLabel(self.parent, text=self.root.questionManager.categories[header].name).grid(row=0, column=header)
# 
# 	def buildTableBody(self):
# 		for row in range(1, 6):
# 			for col in range(6):
# 				values = [100, 200, 300, 400, 500, 600]
# 				count = (row - 1) * 6 + col
# 				if self.root.questionManager.questionSet[col][row - 1] == 1:
# 					text = "$" + str(values[row - 1])
# 				# text = str((row - 1) * 6 + col)
# 				else:
# 					text = ""
# 				JPYButton(
# 					self.parent,
# 					root=self.root,
# 					question=self.root.questionManager.questions[self.root.questionManager.categories[col].name][row - 1],
# 					text=text,
# 					qCategory=self.root.questionManager.categories[col],
# 					double=(True if count in self.root.questionManager.double else False),
# 					worth=values[row - 1],
# 					questionID=[col, row - 1],
# 					borderwidth=1,
# 					category=self.root.questionManager.categories[col].type,
# 				).grid(row=row, column=col)
# 
# 	def buildCandidates(self):
# 		col = 0
# 		max = len(self.root.candidateManager.candidates)
# 		span = int(ceil(6 / max))
# 
# 		for candidate in self.root.candidateManager.candidates:
# 			cLabel = JPYUserLabel(self.parent, back=candidate.color, user=candidate)
# 			cLabel.grid(row=6, column=col, columnspan=span)
# 			col += span
# 
# 		if span == 1:
# 			for empty in range(6 - len(self.root.candidateManager.candidates)):
# 				JPYLabel(self.parent, background="black", text="").grid(row=6, column=len(
# 					self.root.candidateManager.candidates) + empty)
# 
# Path: de/hochschuletrier/jpy/overlays/OverlayManager.py
# class OverlayManager:
# 	def __init__(self, root):
# 		self.root = root
# 		self.activeOverlay = 0
# 		self.overlays = []
# 
# 		self.generateOverlays()
# 
# 	def generateOverlays(self):
# 		self.overlays.append(QuestionOverlay(self.root, overlayName="Frage", id=0))
# 		self.overlays.append(UsernameOverlay(self.root, overlayName="Username", id=1))
# 		self.overlays.append(DoubleOverlay(self.root, overlayName="Double Jeopardy", id=2))
# 
# 		for overlay in self.overlays:
# 			overlay.lower()
# 
# 	def showOverlay(self, overlay):
# 		if overlay > len(self.overlays) - 1:
# 			return
# 		if self.overlays[overlay].id == 1 or self.overlays[overlay].id == 2:
# 			self.overlays[overlay].field.bind("<Return>", self.overlays[overlay].save)
# 			self.overlays[overlay].field.focus_set()
# 		self.overlays[self.activeOverlay].lower()
# 		self.overlays[overlay].lift(aboveThis=None)
# 		self.overlays[overlay].isVisible = True
# 		self.activeOverlay = overlay


# Path: de/hochschuletrier/jpy/states/PlayGameState.py
from de.hochschuletrier.jpy.states.GameState import GameState
from de.hochschuletrier.jpy.ui.TableProcessor import TableProcessor
from de.hochschuletrier.jpy.overlays.OverlayManager import OverlayManager

__author__ = 'miko'


class PlayGameState(GameState):
	def __init__(self, *args, **kwargs):

		GameState.__init__(self, *args, **kwargs)