docs: def generateUiClasses(srcpath):
      """
      Generates the UI classes using the compilation system for Qt.
      
      :param      srcpath | <str>
      """
      import_qt(globals())
      
      for root, folders, files in os.walk(srcpath):
          found = False
          for file in files:
              name, ext = os.path.splitext(file)
              if ext != '.ui':
                  continue
              
              found = True
              
              wrapper = QT_WRAPPER.lower()
              basename = file.replace('.ui', '').replace('.', '_')
              filename = '{0}_{1}_ui.py'.format(basename, wrapper)
              
              outfile = os.path.join(root, filename)
              
              # compile the ui
              f = open(outfile, 'w')
              uic.compileUi(os.path.join(root, file), f)
              f.close()
              
              # cleanup import content
              f = open(outfile, 'r')
              data = f.read()
              f.close()
              
              data = re.sub('import .*_rc', '', data)
              
              # save back out the content
              f = open(outfile, 'w')
              f.write(data)
              f.close()
          
          if found and not '__init__.py' in files:
              f = open(os.path.join(root, '__init__.py'), 'w')
              f.write('# auto created for UI import')
              f.close()