# 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
				self.next_color=3-color
				self.undo_button.config(state='normal')
				
				if color==1:
					if self.white_autoplay:
						log("WHITE AUTOPLAY")
						self.lock()
						threading.Thread(target=self.click_button,args=(self.menu_bots[self.selected_bot.get()],)).start()
						#self.click_button(self.menu_bots[self.selected_bot.get()])
				else:
					if self.black_autoplay:
						log("BLACK AUTOPLAY")
						self.lock()
						threading.Thread(target=self.click_button,args=(self.menu_bots[self.selected_bot.get()],)).start()
						#self.click_button(self.menu_bots[self.selected_bot.get()])

				
	def set_status(self,msg,event=None):
		try:
			self.status_bar.config(text=msg)
		except:
			log(msg)
		
	def clear_status(self):
		try:
			self.status_bar.config(text="")
		except:
			pass
		
	def click_play_one_move(self):

# 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

				self.next_color=3-color
				self.undo_button.config(state='normal')
				
				if color==1:
					if self.white_autoplay:
						log("WHITE AUTOPLAY")
						self.lock()
						threading.Thread(target=self.click_button,args=(self.menu_bots[self.selected_bot.get()],)).start()
						#self.click_button(self.menu_bots[self.selected_bot.get()])
				else:
					if self.black_autoplay:
						log("BLACK AUTOPLAY")
						self.lock()
						threading.Thread(target=self.click_button,args=(self.menu_bots[self.selected_bot.get()],)).start()
						#self.click_button(self.menu_bots[self.selected_bot.get()])

				
	def set_status(self,msg,event=None):
		try:
			self.status_bar.config(text=msg)
		except:
			log(msg)
		
	def clear_status(self):
		try:
			self.status_bar.config(text="")
		except:
			pass
		
	def click_play_one_move(self):

		log("Asking",self.selected_bot.get(),"to play one move")