Force fitting of the Python window

Test commit to see if this fixes an issue for macs

Fixes https://gitlab.com/kicad/code/kicad/issues/8622
This commit is contained in:
Seth Hillbrand 2021-09-22 11:44:49 -07:00
parent 3b04b602d9
commit f469d02f47
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,11 @@ sys.path.append( stock_path )
// Execute the code to make the makeWindow function we defined above
PyRun_SimpleString( pcbnew_pyshell_one_step.str().c_str() );
/// For unknown reasons, some mac builds don't automatically layout the Python window until resized
/// so force the fit here
Layout();
Fit();
}