def OnOutClick(self,event):
		filepath=filedialog.display_filedialog()
		if not filepath:return
		if filepath.endswith('.csv'):
			CSVstream.export2csv(filepath,self.result_set)
			self.WritetoFront('导出结果成功!')
		else:
			self.WritetoFront('not CSV file!')
 def OnOutClick(self, event):
     filepath = filedialog.display_filedialog()
     if not filepath: return
     if filepath.endswith('.csv'):
         CSVstream.export2csv(filepath, self.result_set)
         self.WritetoFront('导出结果成功!')
     else:
         self.WritetoFront('not CSV file!')
	def OnImportClick(self,event):
		filepath=filedialog.display_filedialog()
		if not filepath:return
		if not filepath.endswith('.csv'):
			tipsdialog.display_tips('注意导入的文件必须是CSV格式')
			return
		sign,urls=CSVstream.importcsv(filepath)
		if sign:
			self.CSVtoBoard(urls)
		else:
			msg=urls
			self.WritetoFront('%s' % msg,True,1)
 def OnImportClick(self, event):
     filepath = filedialog.display_filedialog()
     if not filepath: return
     if not filepath.endswith('.csv'):
         tipsdialog.display_tips('注意导入的文件必须是CSV格式')
         return
     sign, urls = CSVstream.importcsv(filepath)
     if sign:
         self.CSVtoBoard(urls)
     else:
         msg = urls
         self.WritetoFront('%s' % msg, True, 1)