Python declarative

sertorbe at gmail.com sertorbe at gmail.com
Wed Jan 22 15:38:44 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

Hi again, just wrote to announce that I'm going to rewrite guilang in Python. Again thanks you are all awesome :).



More information about the Python-list mailing list