# 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 toolbox import *
from toolbox import _
from goban import *
from copy import deepcopy as copy
from time import sleep
from Queue import Queue
class InteractiveGoban(Frame):
	def __init__(self,parent,move,dim,sgf,**kwargs):
		Frame.__init__(self,parent,**kwargs)
		self.parent=parent
		self.move=move
		self.dim=dim
		self.sgf=sgf
		
		self.available_bots=[]
		for bot in get_available():
			self.available_bots.append(bot)
		
		self.available_gtp_bots=[]
		for bot in get_gtp_bots():
			self.available_gtp_bots.append(bot)
		self.name=None
		self.initialize()

	def stone_sound(self):
		self.after(100,play_stone_sound)
	
	def lock_threaded(self):
		self.display_queue.put(3)
		self.display_feedback_queue.get()
	
	def lock(self):
		self.goban.display(self.grid,self.markup,True)
		self.undo_button.config(state='disabled')
		try:
			self.bots_menubutton.config(state='disabled')

# 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: tabbed.py
from Tkinter import *
from toolbox import *
from toolbox import _
from goban import *
from copy import deepcopy as copy
from time import sleep
from Queue import Queue

class InteractiveGoban(Frame):
	def __init__(self,parent,move,dim,sgf,**kwargs):
		Frame.__init__(self,parent,**kwargs)
		self.parent=parent
		self.move=move
		self.dim=dim
		self.sgf=sgf
		
		self.available_bots=[]
		for bot in get_available():
			self.available_bots.append(bot)
		
		self.available_gtp_bots=[]
		for bot in get_gtp_bots():
			self.available_gtp_bots.append(bot)
		self.name=None
		self.initialize()

	def stone_sound(self):
		self.after(100,play_stone_sound)
	
	def lock_threaded(self):
		self.display_queue.put(3)
		self.display_feedback_queue.get()
	
	def lock(self):
		self.goban.display(self.grid,self.markup,True)
		self.undo_button.config(state='disabled')
		try:
			self.bots_menubutton.config(state='disabled')

			self.actions_menubutton.menu.entryconfig(_('Play one move'), state="disabled")