WebBrowser/Tools/WebBrowserTools.py

branch
QtWebEngine
changeset 4741
f9e1adc69076
parent 4725
b19ff70ba509
child 4763
8ad353f31184
--- a/WebBrowser/Tools/WebBrowserTools.py	Sat Feb 13 14:17:39 2016 +0100
+++ b/WebBrowser/Tools/WebBrowserTools.py	Sun Feb 14 16:47:40 2016 +0100
@@ -44,3 +44,19 @@
         return contents
     
     return QByteArray()
+
+
+def containsSpace(string):
+    """
+    Function to check, if a string contains whitespace characters.
+    
+    @param string string to be checked
+    @type str
+    @return flag indicating the presence of at least one whitespace character
+    @rtype bool
+    """
+    for ch in string:
+        if ch.isspace():
+            return True
+    
+    return False

eric ide

mercurial