{"published":"2008-03-22 02:59:38","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjkani4.hatenadiary.org%2Fentry%2F20080322%2F1206122378\" title=\"pygtk\u899a\u3048\u66f8\u304d\u3000gtk.TextView\u3067\u6307\u5b9a\u884c\u3078\u79fb\u52d5\u3059\u308b\u3002 - Linux\u3068\u304bBlender\u3068\u304bVol\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_name":"Hatena Blog","url":"https://jkani4.hatenadiary.org/entry/20080322/1206122378","provider_url":"https://hatena.blog","blog_title":"Linux\u3068\u304bBlender\u3068\u304bVol\uff12","image_url":null,"author_url":"https://blog.hatena.ne.jp/jkani4/","width":"100%","height":"190","blog_url":"https://jkani4.hatenadiary.org/","title":"pygtk\u899a\u3048\u66f8\u304d\u3000gtk.TextView\u3067\u6307\u5b9a\u884c\u3078\u79fb\u52d5\u3059\u308b\u3002","author_name":"jkani4","categories":["Dev-PyGTK"],"type":"rich","description":"gtk.TextView\u3067\u884c\u756a\u53f7\u3092\u6307\u5b9a\u3057\u3066\u3001\u305d\u306e\u884c\u3078\u30ab\u30fc\u30bd\u30eb\u3092\u79fb\u52d5\u3055\u305b\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002 # txtView\u3068\u3044\u3046gtk.TextView\u304c\u3042\u3063\u305f\u3068\u3057\u3066 bf = txtView.get_buffer() lineIter = bf.get_iter_at_line(lineNo) if lineIter: bf.place_cursor(lineIter) txtView.scroll_to_iter(lineIter, 0.2) \u4e0a\u8a18\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e2d\u306elineNo\u306f\u30a4\u30c6\u30ec\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u884c\u756a\u53f7\uff08\u30bc\u30ed\u30aa\u30ea\u30b8\u30f3\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 \u307e\u305f\u3001scroll_to_iter()\u306e\u7b2c2\u5f15\u6570\u306b0.2\u3092\u2026"}