I\'m trying to use gtk.window.get_size(), but it always just returns the default width and height. The documentation says
The get_size() method return
Try running:
while gtk.events_pending(): gtk.main_iteration_do(False)
right before calling window.get_size()
window.get_size()