Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python で Ubuntu 用の小さなアプリケーション インジケーターを作成しています。インセンシティブ (無効) gtk.MenuItem のテキストを変更する必要があります。私は、この機能の生きた例を知っています。これは、組み込みの Bluetooth インジケーターの一番上の項目です。
はgtk.MenuItem、画像などのより複雑なものがない限り、通常、実際のラベルを子ウィジェットとして持つコンテナーです。子が単純なラベルである場合は、できるはずです
gtk.MenuItem
menuitem.get_child().set_text('New text')