2

I have designed a GUI with wxGlade in python and the design within the program looks fine.

enter image description here

But once i had generated the code and ran it in idle, it looks much different.

enter image description here

I would like to know why this has happened, what went wrong and what i can do to fix this problem.

I am using Python 2.7(32bit) and Windows 7 with the latest wxpython and wxglade installation.

The wxglade file is here: http://www.fileswap.com/dl/cH4kAoUk6S/

1 Answer 1

3

Stretch the borders of your app on run, the elements are there. For some reason, the elements are not being drawn on load, but instead on event change.

For seeing the results as it should, un-check the size option, save and generate code :)

size

Sign up to request clarification or add additional context in comments.

3 Comments

Do you know how to implement this in wxglade?
If i am disabling the size option, how do i set the size of the window in the end?
@vjgaero: you can manually add the size in the code. I recommend leaving it off, it will dynamically set the size :) On an entirely different note, right now I am the servant of SATAN (666 rep XD)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.