# 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.current_bot=_("No bot")
		if len(self.menu_bots)>0:
			
			
			
			mb1.pack(side=LEFT,fill=Y)
			self.selected_bot=StringVar()
			#self.selected_bot.set(self.menu_bots.keys()[0])
			
			
			list_of_bots=self.menu_bots.keys()
			list_of_bots.sort()
			if grp_config.get("Review", "LastBot") in list_of_bots:
				log("Placing",grp_config.get("Review", "LastBot") , "as playing bot first choice")
				list_of_bots.remove(grp_config.get("Review", "LastBot"))
				list_of_bots=[grp_config.get("Review", "LastBot")]+list_of_bots
			list_of_bots.append(_("No bot"))
			self.selected_bot.set(_("No bot"))
			for bot in list_of_bots:
				mb1.menu.add_radiobutton(label=bot, value=bot, variable=self.selected_bot, command=self.change_bot)
			
			
			
			mb2.pack(side=LEFT,fill=Y)
			mb2.config(state="disabled")
			self.selected_action=StringVar()
			self.selected_action.set("do nothing")
			mb2.menu.add_radiobutton(label=_('Do nothing'), value="do nothing", variable=self.selected_action, command=self.change_action)
			mb2.menu.add_radiobutton(label=_('Play one move'), value="play one move", variable=self.selected_action, command=self.change_action)
			mb2.menu.add_radiobutton(label=_('Play as white'), value="play as white", variable=self.selected_action, command=self.change_action)

# 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.current_bot=_("No bot")
		if len(self.menu_bots)>0:
			
			
			
			mb1.pack(side=LEFT,fill=Y)
			self.selected_bot=StringVar()
			#self.selected_bot.set(self.menu_bots.keys()[0])
			
			
			list_of_bots=self.menu_bots.keys()
			list_of_bots.sort()
			if grp_config.get("Review", "LastBot") in list_of_bots:
				log("Placing",grp_config.get("Review", "LastBot") , "as playing bot first choice")
				list_of_bots.remove(grp_config.get("Review", "LastBot"))
				list_of_bots=[grp_config.get("Review", "LastBot")]+list_of_bots
			list_of_bots.append(_("No bot"))
			self.selected_bot.set(_("No bot"))
			for bot in list_of_bots:
				mb1.menu.add_radiobutton(label=bot, value=bot, variable=self.selected_bot, command=self.change_bot)
			
			
			
			mb2.pack(side=LEFT,fill=Y)
			mb2.config(state="disabled")
			self.selected_action=StringVar()
			self.selected_action.set("do nothing")
			mb2.menu.add_radiobutton(label=_('Do nothing'), value="do nothing", variable=self.selected_action, command=self.change_action)
			mb2.menu.add_radiobutton(label=_('Play one move'), value="play one move", variable=self.selected_action, command=self.change_action)
			mb2.menu.add_radiobutton(label=_('Play as white'), value="play as white", variable=self.selected_action, command=self.change_action)

			mb2.menu.add_radiobutton(label=_('Play as black'), value="play as black", variable=self.selected_action, command=self.change_action)