def __init__(self, master):
	    tk.Toplevel.__init__(self, master)
	    self.geneLabel=tk.Label(self, text="gene")
	    self.geneLabel.grid(row=0, column=0)
	    self.gene=tk.Entry(self, fg="gray")
	    self.gene.insert(tk.END, "eg. rpoB")
	    self.gene.bind("<Button-1>", lambda event: remove_default_text(self,self.gene))
	    self.gene.clicked=False
	    self.gene.grid(row=0,column=1)

	    self.forwardLabel=tk.Label(self, text="fwd. align sequence")
	    self.forwardLabel.grid(row=3, column=0)
	    self.forward=tk.Entry(self, fg="gray")
	    self.forward.insert(tk.END, "eg. ACGTAA")
	    self.forward.bind("<Button-1>", lambda event: remove_default_text(self,self.forward))
	    self.forward.clicked=False
	    #self.forward.pack(pady=(0,10))

	    self.barcodelabel=tk.Label(self, text="Barcode")
	    self.barcodelabel.grid(row=2, column=1)
	    #self.barcode.pack(pady=(0,10))

	    self.targetlabel=tk.Label(self, text="target sequence")
	    self.targetlabel.grid(row=3, column=2)
	    self.target=tk.Entry(self, fg="gray")
	    self.target.insert(tk.END, "eg. ACGGGGTATTACCCCTAGTATA")
	    self.target.bind("<Button-1>", lambda event: remove_default_text(self,self.target))
	    self.target.clicked=False


	    self.reverselabel=tk.Label(self, text="rev. align sequence")
	    self.reverselabel.grid(row=3, column=3)
	    self.reverse=tk.Entry(self, fg="gray")
	    self.reverse.insert(tk.END, "eg. CAGATTA")
	    self.reverse.bind("<Button-1>", lambda event: remove_default_text(self,self.reverse))
	    self.reverse.clicked=False

	    self.target.grid(row=2, column=2, sticky=(tk.E, tk.W))
	    self.reverse.grid(row=2, column=3, sticky=(tk.E, tk.W))
	    self.forward.grid(row=2, column=0, sticky=(tk.E, tk.W))
	    #self.barcode.grid(row=2, column=1, sticky=(tk.E, tk.W))

	    self.maxphase_label=tk.Label(self, text="max phase")
	    self.maxphase_label.grid(row=4, column=1)
	    self.maxphase=tk.StringVar()
	    self.maxphase.set("-")
	    self.maxphase_menu=tk.OptionMenu(self, self.maxphase,"0",'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20', command=self.show_phase_boxes)
	    self.maxphase_menu.grid(row=4, column=2)

	    self.rev_phase_objects=[]

	    self.maxRow=4
	    self.b = tk.Button(self,text = "Save ROI",command = self.saveROI)
	    self.b.grid(row=6, column=0)
	def __init__ (self, master = None):
		# Construct the Frame object.
		tk.Frame.__init__ (self, master)
		self.pack()
		self.bind("<Configure>", self.on_resize)
		self.mainLabel = tk.Label(self, text = "MDS Parameters", font=("calibri", 20), fg="red")
		self.mainLabel.pack(pady=20)

		self.zipped=tk.BooleanVar()
		tk.Checkbutton(self, text="My data is zipped",variable=self.zipped).pack(pady=(0,10))


		self.filenameslabel=tk.Label(self, text="filenames, comma separated")
		self.filenameslabel.pack()
		self.filenames = tk.Entry(self, fg="gray")
		self.filenames.insert(tk.END, 'eg. 20160210.fastq.gz,20160211.fastq.gz')
		self.filenames.bind("<Button-1>", lambda event: remove_default_text(self,self.filenames))
		self.filenames.clicked =False
		self.filenames.pack(pady=(0,10))

		self.threshlabel=tk.Label(self, text="inclusion threshold")
		self.threshlabel.pack()
		self.thresh = tk.IntVar(self)
		self.thresh.set(3)
		self.thresh_menu =tk.OptionMenu(self, self.thresh, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)
		self.thresh_menu.pack(pady=(0,10))

		self.number_of_ROIs_label=tk.Label(self, text="number of ROIs")
		self.number_of_ROIs_label.pack()
		self.number_of_ROIs= tk.IntVar(self)
		self.number_of_ROIs.set(0)
		self.number_of_ROIs_menu = tk.OptionMenu(self, self.number_of_ROIs, 1,2,3,4,5,6,7,8,9,10)
		self.number_of_ROIs_menu.pack(pady=(0,10))	   

		self.barcode_label=tk.Label(self, text="barcode length")
		self.barcode_label.pack()
		self.barcode_length=tk.IntVar()
		self.barcode_menu=tk.OptionMenu(self, self.barcode_length,'4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25')
		self.barcode_menu.pack(pady=(0,10))	

		self.create_roi=tk.Button(self, text="Create ROIs", command=lambda: self.new_ROI_window(self.number_of_ROIs.get()))
		self.create_roi.pack()



		#self.geneslabel=tk.Label(self, text="genes, comma separated")
		#self.geneslabel.pack()
		#self.genes = tk.Entry(self, fg="gray")
		#self.genes.insert(tk.END, 'eg. rpoB,mrcA,rpoZ')
		#self.genes.bind("<Button-1>", lambda event: remove_default_text(self,self.genes))
		#self.genes.clicked =False
		#self.genes.pack(pady=(0,10))

	
		self.b = tk.Button(self,text = "Submit",command = self.save)
		self.b.pack()

		self.ROIs=[]