Well, if you insist doing it wrong, I suggest you at least take a look at Window Geometry documentation. There is no need to query window's title height when placing its child widgets. You just have to choose proper methods which exclude window frame.