Nassarofficial 0 Newbie Poster

Hello, i am writing a simple GUI Builder, and I finished all the part that leads to the code that will be put into the window which is viewed to the user, and my problem is i want to the code to be sort of refreshed to view the changes in the program....

it might be confusing.. so here is it simpler, the interface has a window for previewing, i want to add the for example the button code into that window and sort of refresh it to view the code... I am using wx if it helps...