[Ctk-developers] Using ctkWorkflowWidgetStep.setBackButtonText or .setButtonBoxHints in Python

Daniel Haehn haehn at bwh.harvard.edu
Thu Jun 2 20:20:35 EDT 2011


Steve, JC, thanks for the detailed replies!

Is there something which would prevent making the buttonhints for the wizard
steps Q_INVOKABLE?

Cheers,
Daniel
On Jun 2, 2011 2:26 PM, "Jean-Christophe Fillion-Robin" <
jchris.fillionr at kitware.com> wrote:
> On Thu, Jun 2, 2011 at 1:06 PM, Steve Pieper <pieper at ibility.net> wrote:
>
>> Hi Daniel -
>>
>> With the PythonQt wrapping, only properties, signals/slots, and
>> methods tagged with Q_INVOKABLE are available in python.
>>
>
> Correct.
>
>
>> I would argue that we should try to expose the public API of our
>> widgets as much as possible to python but right now there is a lot of
>> functionality that is only available via C++.
>>
>
> When the API of class is designed, efforts are put to elaborate it.
> Similarly, the same thought process should be done regarding the usability
> of the object from within python.
>
> To validate the API, a set of test *are* (should be) developed. As of
today,
> these tests are written in Cpp. We could think of having tests also
written
> in Python.
>
> -
>
>>
>> -Steve
>>
>> On Thu, Jun 2, 2011 at 12:57 PM, Daniel Haehn <haehn at bwh.harvard.edu>
>> wrote:
>> > Hi guys,
>> >
>> > I am trying to hide the buttonbox on a ctkWorkflowWidgetStep in Python
>> > but I can not access the method:
>> >
>> > a = ctk.ctkWorkflowWidgetStep()
>> > ...
>> > a.setButtonBoxHints(..) # does not exist
>> >
>> > Accessing the ButtonBoxHint enum with its values is possible.
>> >
>> > Also, I am missing access to a.setBackButtonText(..).
>> >
>> > Am I doing something wrong or is the doxygen documentation outdated?
>> >
>> > Thanks,
>> > Daniel
>> > _______________________________________________
>> > Ctk-developers mailing list
>> > Ctk-developers at commontk.org
>> > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>> >
>> _______________________________________________
>> Ctk-developers mailing list
>> Ctk-developers at commontk.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>>
>
>
>
> --
> +1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20110602/fe3b72fe/attachment.html>


More information about the Ctk-developers mailing list