# 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
		self.nb_moves=nb_moves
		self.data=data
		self.current_move=current_move

		self.last_graph=grp_config.get("Review","LastGraph")
		self.initialize()

	def close(self):
		log("closing popup")
		self.destroy()
		self.parent.remove_popup(self)
		log("done")

	def initialize(self):
		for widget in self.pack_slaves():
			widget.destroy()
		
		popup=self
		bg=popup.cget("background")
		
		top_frame=Frame(popup)
		top_frame.pack()
		
		self.graph_mode=StringVar()
		available_graphs=[]

		for data in self.data:
			if data:
				if "position_win_rate" in data:
					#self.graph_mode.set(_("Win rate")) # initialize

# 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

		self.nb_moves=nb_moves
		self.data=data
		self.current_move=current_move

		self.last_graph=grp_config.get("Review","LastGraph")
		self.initialize()

	def close(self):
		log("closing popup")
		self.destroy()
		self.parent.remove_popup(self)
		log("done")

	def initialize(self):
		for widget in self.pack_slaves():
			widget.destroy()
		
		popup=self
		bg=popup.cget("background")
		
		top_frame=Frame(popup)
		top_frame.pack()
		
		self.graph_mode=StringVar()
		available_graphs=[]

		for data in self.data:
			if data:
				if "position_win_rate" in data:
					#self.graph_mode.set(_("Win rate")) # initialize

					available_graphs.append(_("Win rate"))