parameters: (self, file_lbl)
return_statement: return True
docstring: Opens a file using the names in the Syntax Files choice
          control as a search query.
          @param file_lbl: name of file to open in test data directory
docstring_summary: Opens a file using the names in the Syntax Files choice
          control as a search query.
          @param file_lbl: name of file to open in test data directory
docstring_tokens: Opens a file using the names in the Syntax Files choice control as a search query . @param file_lbl : name of file to open in test data directory
function: def OpenPreviewFile(self, file_lbl):
          """Opens a file using the names in the Syntax Files choice
          control as a search query.
          @param file_lbl: name of file to open in test data directory
  
          """
          fname = file_lbl.replace(u" ", u"_").replace(u"/", u"_").lower()
          fname = fname.replace('#', 'sharp')
          try:
              fname = glob.glob(ed_glob.CONFIG['TEST_DIR'] + fname + ".*")[0]
          except IndexError:
              self.LOG('[style_editor][err] File %s Does not exist' % fname)
              return False
  
          self.preview.SetFileName(fname)
          self.preview.ClearAll()
          self.preview.LoadFile(fname)
          self.preview.FindLexer()
          self.preview.EmptyUndoBuffer()
          return True
function_tokens: def OpenPreviewFile ( self , file_lbl ) : fname = file_lbl . replace ( u" " , u"_" ) . replace ( u"/" , u"_" ) . lower ( ) fname = fname . replace ( '#' , 'sharp' ) try : fname = glob . glob ( ed_glob . CONFIG [ 'TEST_DIR' ] + fname + ".*" ) [ 0 ] except IndexError : self . LOG ( '[style_editor][err] File %s Does not exist' % fname ) return False self . preview . SetFileName ( fname ) self . preview . ClearAll ( ) self . preview . LoadFile ( fname ) self . preview . FindLexer ( ) self . preview . EmptyUndoBuffer ( ) return True