def ParseDir(self, event):
		list = []
		r = searchdrives.drivelibrary()
		self.EnteredNum = self.txt1.GetValue()
		self.EnteredName = self.txt2.GetValue()
		
		list = r.addDrive(self.chosendir)
		
		r.parseEDL(list)
		
		r.createDBEntry(self.EnteredName, self.EnteredNum)
		self.m_bpButton26.Enable(False)
def test():
	
	#r.parseEDL('testEDL1.edl')
	
	#r.createDBEntry("TestJob1", 000003)
	
	#r = searchdrives.drivelibrary()
	
	#r.deleteDBEntry(000003)
	#r = drivelibrary()
	
	r = searchdrives.drivelibrary()
	#r.addDrive("TestJob1", 000000, "/Users/gavinhinfey/GitHub/")
	print r.queryDBfile("GOPR0084A02.CE270C452014DB0.mxf")
	def __init__(self, parent):
		self.parent = parent
		wx.ScrolledWindow.__init__(self, parent, -1, style=wx.TAB_TRAVERSAL)

		gb = wx.GridBagSizer(vgap=0, hgap=3)
		self.sizer = gb
		self._labels = []
		self._show_but = wx.Button(self, -1, "Show")
		self._hide_but = wx.Button(self, -1, "Hide")
		gb.Add(self._show_but, (0,0), (1,1))
		gb.Add(self._hide_but, (0,1), (1,1))

		r = searchdrives.drivelibrary()
		
		
		searchSelection = frame1.frame5.combo.GetValue()
		
		searchresults = []
		
		if searchSelection == "Global":
			list = r.queryDBglobal(frame1.frame5.txt3.GetValue())
			for i in list:
				for y in i:
					searchresults.append(y)
		
		elif searchSelection == "File":
			found = r.queryDBfile(frame1.frame5.txt3.GetValue())
			for i in found:
				for y in i:
					searchresults.append(y)
			
		elif searchSelection == "Drives":
			searchresults.append(r.queryDBlibnum(frame1.frame5.txt3.GetValue()))
		
		elif searchSelection == "Paths":
			searchresults.append(r.queryDBpath(frame1.frame5.txt3.GetValue()))
			
		elif searchSelection == "Job":
			searchresults.append(r.queryDBjob(frame1.frame5.txt3.GetValue()))
			
		elif searchSelection == "Dates":
			searchresults.append(r.queryDBdate(frame1.frame5.txt3.GetValue()))
			
		newline= ""
		count = 0
		#THIS CURRENT SEARCH WORKS SLIGHTLY FOR SEARCHING FILES!
		
		mouse = "Mouse!"
		mouselist = ["Bats","Jacks","Frogs","Cats"]
		catslist = ["dogs", "People", "Horses"]
		listmoustlist = [mouselist, catslist]



		
		try:
			assert not isinstance(searchresults, basestring)
			
		except:
			

			self._labels.append(wx.StaticText(self, -1, str(searchresults)))
			gb.Add(self._labels[-1], (1,1), (1,1))
			pass
		
		else:
			

			for i in searchresults:
				count += 1
				try:
					assert not isinstance(i, (basestring, int))
					
				except:
					
					
					self._labels.append(wx.StaticText(self, -1, str(i)))
					gb.Add(self._labels[-1], (count,1), (1,1))
					print "1"
					pass

				else:
					
					
					for y in i:
						count += 1
						try:
							assert not isinstance(y, (basestring, int))
					
						except:

							self._labels.append(wx.StaticText(self, -1, str(y)))
							gb.Add(self._labels[-1], (count,1), (1,1))
							
							pass
						else:
							for z in y:
								count += 1
								
								try:
									assert not isinstance(z, (basestring, int))

					
								except:

									self._labels.append(wx.StaticText(self, -1, str(z)))
									gb.Add(self._labels[-1], (count,1), (1,1))
									
									pass
									
								else:
									pass



		self._labels.append(wx.StaticText(self, -1,newline))
		self._show_but.Bind(wx.EVT_BUTTON, self.OnShow)
		self._hide_but.Bind(wx.EVT_BUTTON, self.OnHide)
		self.SetSizer(self.sizer)
		fontsz = wx.SystemSettings.GetFont(wx.SYS_SYSTEM_FONT).GetPixelSize()
		self.SetScrollRate(fontsz.x, fontsz.y)
		self.EnableScrolling(True,True)