It is important that the variables used to hold owned references are initialized to NULL for this to work; likewise, the proposed return value is initialized to-1 (failure) and only set to success after the final call made is successful. 正しく動作させるためには、所有権を持つ参照を保持するための変数を NULL で初期化することが重要です; 同様に、あらかじめ戻り値を定義する際には値を -1 (失敗) で初期化しておいて、最後の関数呼び出しまでうまくいった場合にのみ 0 (成功)に設定します。 - Python
If the specified names contain more than one component and if more than one child matches the first component, XtNameToWidget can returnNULL if the single branch that it follows does not contain the named widget.That is, XtNameToWidget does not back up and follow other matching branches of the widget tree. 指定した names が複数の要素を持ち、複数の子ウィジェットが最初の要素にマッチした場合、この子ウィジェットに続く単独の枝が名前の付いたウィジェットを持っていなければ、XtNameToWidgetは NULL を返すことがある。 つまり、XtNameToWidgetは、ウィジェットツリーを戻って他のマッチする枝を追うことはない。 - XFree86
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.