From f14bcb9b6c79f7f071e32a7ef9bba5ce440096bd Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Thu, 15 Oct 2009 14:23:57 +0000 Subject: Big commit! Everything to make Tutorial execution work through dbus. --- (limited to 'tutorius/creator.py') diff --git a/tutorius/creator.py b/tutorius/creator.py index 513e312..46d4852 100644 --- a/tutorius/creator.py +++ b/tutorius/creator.py @@ -207,9 +207,13 @@ class Creator(object): had_introspect = True self.introspecting = True elif isinstance(prop, properties.TStringProperty): - dlg = TextInputDialog(title="Mandatory property", + dlg = TextInputDialog(text="Mandatory property", field=propname) setattr(action, propname, dlg.pop()) + elif isinstance(prop, properties.TIntProperty): + dlg = TextInputDialog(text="Mandatory property", + field=propname) + setattr(action, propname, int(dlg.pop())) else: raise NotImplementedError() -- cgit v0.9.1