Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64030 > unrolled thread

Re: Python declarative

Started byTim Chase <python.list@tim.thechases.com>
First post2014-01-15 18:48 -0600
Last post2014-01-15 18:48 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python declarative Tim Chase <python.list@tim.thechases.com> - 2014-01-15 18:48 -0600

#64030 — Re: Python declarative

FromTim Chase <python.list@tim.thechases.com>
Date2014-01-15 18:48 -0600
SubjectRe: Python declarative
Message-ID<mailman.5552.1389833272.18130.python-list@python.org>
On 2014-01-16 10:09, Chris Angelico wrote:
> myWindow = Window(
>      title="Hello World",
>      children=[Button(
>          label="I'm a button",
>          onClick=exit
>      )]
> )

This also solves the problem that **kwargs are just a dict, which is
inherently unordered.  So with the previous scheme, you'd just get an
unordered bag of controls that Python could then dump into your
containing window as its dict-traversal algorithms saw fit. :-)

-tkc


 

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web