Python declarative

sertorbe at gmail.com sertorbe at gmail.com
Sun Jan 19 05:27:38 EST 2014


El miércoles, 15 de enero de 2014 18:02:08 UTC+1, Sergio Tortosa Benedito  escribió:
> 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

OK, thanks, maybe the to be read by python may be interesting .Anyway, I think I'll have to consider all the options I have right now (Lua,Python,A file readed by Python). Really, thanks, you are awesome.

Sergio.



More information about the Python-list mailing list