# Path: toolbox.py
# def _(txt=None):
# 	global translations
# 	if not translations:
# 		return unicode(txt)
# 	if translations.has_key(txt):
# 		return translations[txt]
# 	return unicode(txt)


from Tkinter import *
from ttk import Notebook
from Tkconstants import *
from ScrolledText import *
from functools import partial
from toolbox import *
from toolbox import _
from tabbed import *
from goban import *
from copy import deepcopy as copy
import tkFont
import sys,time
import os
import threading, Queue
		import goban
			
		goban.display(grid,markup)

		
	
	def update_territory(self,move):
		one_move=get_node(self.gameroot,move)
		
		self.territories=[[],[]]
		if node_has(one_move,"TBM") or node_has(one_move,"TWM"):
			territories=True
			self.left_map_menu.menu.entryconfig(_("Territories"), state="normal")
			self.right_map_menu.menu.entryconfig(_("Territories"), state="normal")
		else:
			territories=False
			self.left_map_menu.menu.entryconfig(_("Territories"), state="disabled")
			self.right_map_menu.menu.entryconfig(_("Territories"), state="disabled")
			
		if node_has(one_move,"IBM") or node_has(one_move,"IWM"):
			influence=True
			self.left_map_menu.menu.entryconfig(_("Influence"), state="normal")
			self.right_map_menu.menu.entryconfig(_("Influence"), state="normal")
		else:
			influence=False
			self.left_map_menu.menu.entryconfig(_("Influence"), state="disabled")
			self.right_map_menu.menu.entryconfig(_("Influence"), state="disabled")

		if node_has(one_move,"HTM"):
			heatmap=True
			self.left_map_menu.menu.entryconfig(_("Heat map"), state="normal")

# Path: toolbox.py
# def _(txt=None):
# 	global translations
# 	if not translations:
# 		return unicode(txt)
# 	if translations.has_key(txt):
# 		return translations[txt]
# 	return unicode(txt)


# Path: dual_view.py
from Tkinter import *
from ttk import Notebook
from Tkconstants import *
from ScrolledText import *
from functools import partial
from toolbox import *
from toolbox import _
from tabbed import *
from goban import *
from copy import deepcopy as copy
import tkFont
import sys,time
import os
import threading, Queue
		import goban

			
		goban.display(grid,markup)

		
	
	def update_territory(self,move):
		one_move=get_node(self.gameroot,move)
		
		self.territories=[[],[]]
		if node_has(one_move,"TBM") or node_has(one_move,"TWM"):
			territories=True
			self.left_map_menu.menu.entryconfig(_("Territories"), state="normal")
			self.right_map_menu.menu.entryconfig(_("Territories"), state="normal")
		else:
			territories=False
			self.left_map_menu.menu.entryconfig(_("Territories"), state="disabled")
			self.right_map_menu.menu.entryconfig(_("Territories"), state="disabled")
			
		if node_has(one_move,"IBM") or node_has(one_move,"IWM"):
			influence=True
			self.left_map_menu.menu.entryconfig(_("Influence"), state="normal")
			self.right_map_menu.menu.entryconfig(_("Influence"), state="normal")
		else:
			influence=False
			self.left_map_menu.menu.entryconfig(_("Influence"), state="disabled")
			self.right_map_menu.menu.entryconfig(_("Influence"), state="disabled")

		if node_has(one_move,"HTM"):
			heatmap=True
			self.left_map_menu.menu.entryconfig(_("Heat map"), state="normal")

			self.right_map_menu.menu.entryconfig(_("Heat map"), state="normal")