Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.swapon.de!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'example:': 0.03; 'subject:Python': 0.06; 'advance': 0.07; 'python': 0.11; 'gui': 0.12; 'equal.': 0.16; 'language': 0.16; 'written': 0.21; 'question': 0.24; 'sort': 0.25; 'extension': 0.26; 'developing': 0.27; 'skip:p 30': 0.29; "doesn't": 0.30; "i'm": 0.30; 'alone': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'thanks': 0.36; 'button': 0.38; 'window': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'course': 0.61; 'more': 0.64; '100%': 0.77 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:content-type:mime-version :content-transfer-encoding; bh=M+BPdEm8XTbOpO4GJl4YpyZLF1f6vOuu1amSPlpheDc=; b=1CTXRaSkVd3LR/DQl/2h3kzeqYPWVdUjcjvJkT/pfINzQ5wFus/BdT7x+owFXy9JgQ DZAVOf2WJWI/oEZbAHdW6+CSP9kt/5XJy4R/pB47Chc8QPx6OVQAcGb9ACaev41Soksy QPEZiBDZwoipQKb6tLrvzpnry33fZ0MC+E28o2tVwPF4O/+QILlj+YsRfszzuMlpU0/T xoyB98YH3b6h797Jy/TpnTjA35w2K7EbhGNIYpRiorgCxvBDxiCaL7JHzwPwEZ/ZgO7F XAhLLiOvcXwdFMWlBbtpb+esMJYHKaXn2jB7cwDC8iHpZhnVNzwwX0CVldGBn6IQOtht zZwA== X-Received: by 10.180.38.11 with SMTP id c11mr3419763wik.60.1389805333391; Wed, 15 Jan 2014 09:02:13 -0800 (PST) Subject: Python declarative From: Sergio Tortosa Benedito To: python-list@python.org Date: Wed, 15 Jan 2014 18:02:08 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1389805826 news.xs4all.nl 2852 [2001:888:2000:d::a6]:60776 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64004 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