콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3776 화면

Dear all,

I'm struggling with the abovementioend topic since yesterday. Although I found several hints in this forum as well as other froum I still got no solution.

I would like to put the focus on a specific page of a notebook according to a certain stage of a process. Of course it works with the "autofous"-parameter inside the XML-descirption of the view. But then always the same page will be "autofocussed". Did I oversee something in the documentation which allows passing an bool expression for the "autofocus"-parameter?

I also tried to control the autofocus for a page from within the Python-file of the model - like this:

        doc = etree.XML(res['arch'])
        ann_field = doc.xpath("//page[@name='inspection']")
        if ann_field:
            ann_field[0].set("autofocus""autofocus")
        res['arch'] = etree.tostring(doc)
        return res


Unfortunately this didn't work for setting the autofocus parameter of a page. Obviously, the set-method is never reached because the preceding doc.xpath()-call does not provide the reference to the widget...

I tried to set the text of a label by using this method and it worked well. After playing around for a while trying other things I don't have any further idea of how to solve the problem. Can somebody of you give me an advice?

Any help is greatly approciated.

Many thanks in advance and greeting from Northern Germany!

Carl




아바타
취소

Hello Carl,
did you find a solution to this?

관련 게시물 답글 화면 활동
0
6월 23
2129
0
1월 25
743
2
2월 24
1410
1
1월 23
5423