Are there or have there been serious attempts at creating a programming enviroment in which the standart form of creating a programm is not the editing of textfiles?

I remember having used lego mindstorms when i was a kid by connecting blocks. Has something similiar ever been attempted for more sophisticated users?

Do you know examples?