How to resize the frame?

what exactly did happen?

When I ran the script it showed me the same big size that I had, it looked like it had no effect on the code.