Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64030
| Date | 2014-01-15 18:48 -0600 |
|---|---|
| From | Tim Chase <python.list@tim.thechases.com> |
| Subject | Re: Python declarative |
| References | <1389805328.32401.6.camel@linux-fetk.site> <CAPTjJmqnMaavYx7HyCKaPkj_Kcwp-gQZPjNm-k=KR_FSgEYysQ@mail.gmail.com> <lb73pm$78v$1@ger.gmane.org> <CAPTjJmo+PccoGQoWMa2T6dxySC2HowK59w9xjVvBTX4Whr7yBg@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5552.1389833272.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python declarative Tim Chase <python.list@tim.thechases.com> - 2014-01-15 18:48 -0600
csiph-web