Hi. I'm trying to place an information window in the right upper corner of the screen, but after the textview buffer change, get_size() method returns incorrect (at least from what i'm expecting) window size:
http://metawire.org/~greblus/shots/1.png Here it's waiting for data from a command in a subprocess, window size is (157, 24), http://metawire.org/~greblus/shots/2.png after setting new textview buffer text it does simply: hintwin.show_all() screen = hintwin.get_screen() screenw = screen.get_width() hintw = hintwin.get_size() hintwin.move(screenw - hintw[0], 30) unfortunately the size stays the same until the next update: http://metawire.org/~greblus/shots/3.png and here, the correct size is returned, and everything looks good (of course i guess that the window won't be placed in the right place if there will be a bigger buffer change). What should i do after buffer.set_text(info) to assure window size recalculation? (pygtk-2.6.3) Regards, W. -- Remember, drive defensively! And of course, the best defense is a good offense! _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
