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

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Thu Jun 2 23:46:49 EDT 2011


Hi Daniel,

The requested feature has been implemented, see
https://github.com/commontk/CTK/commit/e8b169829d679e07fd13d2878960af0784edaed8

Please refer to the comment for more details.

Thanks
Jc

On Thu, Jun 2, 2011 at 8:20 PM, Daniel Haehn <haehn at bwh.harvard.edu> wrote:

> 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
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20110602/05e619eb/attachment.html>


More information about the Ctk-developers mailing list