Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def doSearch(self):
- link = self.url.text()
- pat = re.compile('(.+)\\.(.+)')
- patHttp = re.compile('^http://')
- if pat.match(link) and not patHttp.match(link):
- link = 'http://' + link
- elif not pat.match(link):
- link = 'http://www.google.com/search?q=' + link.replace(' ', '+')
- self.web.load(QtCore.QUrl(link))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement