[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ease-dev] Using createDialog with Python
|
Thank you Christian.
Le lundi 12 décembre 2022 à 12:49 +0100, Christian Pontesegger a
écrit :
> Hi Yvan,
>
> here is a working python dialog example for you:
>
>
> # -------------------------------------------------------------------
> --
> loadModule('/System/UI');
> loadModule('/System/UI Builder');
>
> class PythonDialog:
> text = None
>
> def build(self):
> self.text = createText()
>
> def evaluate(self, javaDialog):
> print("Input captured: " +
> str(javaDialog.getData(self.text)))
>
>
> instance = PythonDialog()
>
> javaDialog = createDialog("instance.build()");
> result = executeUI("javaDialog.open()");
> if result == 0:
> instance.evaluate(javaDialog)
> else:
> print("Dialog cancelled")
> # -------------------------------------------------------------------
> --
>
>
> HTH
> Christian
>
> _______________________________________________
> ease-dev mailing list
> ease-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/ease-dev