def Iniciar(self, *args): Url = self.edtLink.get_text() pos = Url.find('://')+3 pag = '/' if pos > 2: Url = Url[pos:] pos = Url.find('/') if pos > -1: pag = Url[pos:] Url = Url[0:pos]