From c0c8f838279517d774c39aa150e1f4a4b3480355 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 20 Nov 2010 19:58:17 +0100 Subject: [PATCH] Start checking when return is pressed in the URL label. --- linkcheck/gui/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linkcheck/gui/__init__.py b/linkcheck/gui/__init__.py index 58bdac7c..7e19dea3 100644 --- a/linkcheck/gui/__init__.py +++ b/linkcheck/gui/__init__.py @@ -185,11 +185,13 @@ Version 2 or later.

"""Display debug dialog.""" self.debug.show() - def on_controlButton_clicked (self): + def start (self): """Start a new check.""" if self.status == Status.idle: self.check() + on_controlButton_clicked = on_urlinput_returnPressed = start + def check (self): """Check given URL.""" self.controlButton.setEnabled(False)