Python declarative

Sergio Tortosa Benedito sertorbe at gmail.com
Wed Jan 15 12:02:08 EST 2014


Hi I'm developing a sort of language extension for writing GUI programs
called guilang, right now it's written in Lua but I'm considreing Python
instead (because it's more tailored to alone applications). My question
it's if I can achieve this declarative-thing in python. Here's an
example:

Window "myWindow" {
	title="Hello world";
	Button "myButton" {
		label="I'm a button";
		onClick=exit
	}
}
print(myWindow.myButton.label)

Of course it doesn't need to be 100% equal. Thanks in advance

Sergio





More information about the Python-list mailing list