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


Groups > comp.lang.python > #64554

Re: Python declarative

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'interpreter': 0.05; 'subject:Python': 0.06; 'encoded': 0.07; 'json': 0.07; '*is*': 0.09; 'compact': 0.09; 'parameter': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'gui': 0.12; 'jan': 0.12; 'suggest': 0.14; 'itself.': 0.14; '(unlike': 0.16; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'personally,': 0.16; 'readable': 0.16; 'those,': 0.16; 'unnecessary.': 0.16; 'xml),': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'things.': 0.19; 'thu,': 0.19; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'specify': 0.24; 'cc:2**0': 0.24; '(see': 0.26; 'compiled': 0.26; 'header:In-Reply-To:1': 0.27; '[1]': 0.29; 'am,': 0.29; 'xml': 0.29; "doesn't": 0.30; '(like': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'that.': 0.31; '(unless': 0.31; 'file': 0.32; 'languages': 0.32; 'quite': 0.32; 'text': 0.33; 'sense': 0.34; "can't": 0.35; 'common': 0.35; 'created': 0.35; 'case,': 0.35; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'url:org': 0.36; 'effort': 0.37; 'las': 0.37; 'easily': 0.37; 'represent': 0.38; 'ahead': 0.38; 'window': 0.38; 'that,': 0.38; 'url:2004': 0.39; 'structure': 0.39; 'url:12': 0.39; 'easy': 0.60; 'most': 0.60; 'simple': 0.61; "you're": 0.61; 'making': 0.63; 'kind': 0.63; 'such': 0.63; 'more': 0.64; 'construction': 0.72; 'fantastic': 0.74; 'technically': 0.84; 'transmitting': 0.84; 'beneficial': 0.91; 'composite': 0.91; 'novice': 0.91; 'superb': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=l4a023DAQk2sragqVSK7SJsaQhQY52Z7QHvA21IgtW8=; b=zjeNf6fvLaDB2057zrVlQACiUhLdCeMojRHsNRtry9/oOYsLRC1t6IRm54ezO9OXfH jY0s3TjRAVUDC8J3N0AeHezZRDsfC7LSZXPWjZTvYENaUoNo4CNCuLxJOgQhQDlQ5Ynf 1E3pv637DAuFv8p2eJO2DGvNry9Ytjg2dgDffSdek119meQ3Nywni1FqAqIGWbwxzTCL E89g5cpFFQJ2U/h99oGS0U9UtyKfOcNjGi5E1yvGzKhMcv1XFTzP1dP5kWBKc2KB2hN0 4OPkm0GtO2vP7H3hwfQFCpgMSyEoePXRjUsoOZJ1idQP14m+/6XuwryXfYfQWPfQgDJJ oedA==
MIME-Version 1.0
X-Received by 10.66.129.133 with SMTP id nw5mr5171598pab.98.1390444146823; Wed, 22 Jan 2014 18:29:06 -0800 (PST)
In-Reply-To <8fde6d34-47c5-49a1-a6d0-9ffe3df2d401@googlegroups.com>
References <mailman.5529.1389805825.18130.python-list@python.org> <8fde6d34-47c5-49a1-a6d0-9ffe3df2d401@googlegroups.com>
Date Thu, 23 Jan 2014 13:29:06 +1100
Subject Re: Python declarative
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5859.1390444150.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1390444150 news.xs4all.nl 2866 [2001:888:2000:d::a6]:47813
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64554

Show key headers only | View raw


On Thu, Jan 23, 2014 at 8:16 AM, Asaf Las <roegltd@gmail.com> wrote:
> i am novice in python, but let me suggest you something:
> it would be beneficial to use json text file to specify
> your gui so composite data structure can be created using
> json and then your program can construct window giving
> its content will be based on simple text file?
> You can add every parameter to json encoded window system
> once your window construction will be using as interpreter
> for that. JSON is very structured and quite presentable for
> such kind of things.
>
> What Gurus do think about this suggestion?

JSON is better than XML for that, but in my opinion, both are
unnecessary. Python code is easy to edit. (See [1] for more on Python
and XML.) When you're writing compiled code, it makes good sense to
drop out of code and use a simple text file when you can; but when
your code *is* a simple text file, why go to the effort of making a
JSON-based window builder? (Unless you already have one. GladeXML may
well be exactly what you want, in which case, go ahead and use it. But
personally, I don't.) JSON is a fantastic format for transmitting
complex objects around the internet; it's compact (unlike XML),
readable in many languages (like XML), easily readable by humans
(UNLIKE XML!), and can represent all the most common data structures
(subtly, XML can't technically do this). It's superb at what it
does... but it doesn't do Python GUIs. For those, use Python itself.

ChrisA

[1] http://dirtsimple.org/2004/12/python-is-not-java.html

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python declarative Sergio Tortosa Benedito <sertorbe@gmail.com> - 2014-01-15 18:02 +0100
  Re: Python declarative Francesco Bochicchio <bieffe62@gmail.com> - 2014-01-17 06:22 -0800
    Re: Python declarative Francesco Bochicchio <bieffe62@gmail.com> - 2014-01-19 23:25 -0800
  Re: Python declarative sertorbe@gmail.com - 2014-01-17 06:47 -0800
    Re: Python declarative Tim Roberts <timr@probo.com> - 2014-01-18 13:13 -0800
  Re: Python declarative sertorbe@gmail.com - 2014-01-19 02:27 -0800
  Re: Python declarative sertorbe@gmail.com - 2014-01-22 12:38 -0800
  Re: Python declarative Asaf Las <roegltd@gmail.com> - 2014-01-22 13:16 -0800
    Re: Python declarative Chris Angelico <rosuav@gmail.com> - 2014-01-23 13:29 +1100
    Re: Python declarative Terry Reedy <tjreedy@udel.edu> - 2014-01-22 23:08 -0500
    Re: Python declarative "Frank Millman" <frank@chagford.com> - 2014-01-24 11:21 +0200
      Re: Python declarative Rustom Mody <rustompmody@gmail.com> - 2014-01-24 01:53 -0800
        Re: Python declarative "Frank Millman" <frank@chagford.com> - 2014-01-24 15:06 +0200
    Re: Python declarative Chris Angelico <rosuav@gmail.com> - 2014-01-24 22:18 +1100
    Re: Python declarative "Frank Millman" <frank@chagford.com> - 2014-01-24 14:49 +0200
    Re: Python declarative Burak Arslan <burak.arslan@arskom.com.tr> - 2014-01-24 15:40 +0200
    Re: Python declarative Chris Angelico <rosuav@gmail.com> - 2014-01-25 00:55 +1100
    Re: Python declarative Matěj Cepl <mcepl@redhat.com> - 2014-01-24 17:28 +0100
    Re: Python declarative Chris Angelico <rosuav@gmail.com> - 2014-01-25 03:33 +1100
      Re: Python declarative sertorbe@gmail.com - 2014-01-24 10:51 -0800
    Re: Python declarative "Frank Millman" <frank@chagford.com> - 2014-01-25 09:18 +0200
      Re: Python declarative Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-26 02:33 +0000
        Re: Python declarative Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-26 02:45 +0000
          Re: Python declarative Asaf Las <roegltd@gmail.com> - 2014-02-02 18:17 -0800
        Re: Python declarative Chris Angelico <rosuav@gmail.com> - 2014-01-26 14:38 +1100
        Re: Python declarative Chris Angelico <rosuav@gmail.com> - 2014-01-26 15:06 +1100
          Re: Python declarative Rustom Mody <rustompmody@gmail.com> - 2014-01-25 20:47 -0800
            Re: Python declarative Chris Angelico <rosuav@gmail.com> - 2014-01-26 16:23 +1100
              Re: Python declarative Rustom Mody <rustompmody@gmail.com> - 2014-01-26 00:05 -0800
                Re: Python declarative "Frank Millman" <frank@chagford.com> - 2014-01-26 11:12 +0200
                Re: Python declarative Rustom Mody <rustompmody@gmail.com> - 2014-01-26 06:36 -0800
          Re: Python declarative Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-26 12:05 +0000
        Re: Python declarative "Frank Millman" <frank@chagford.com> - 2014-01-26 08:03 +0200
          Re: Python declarative Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-26 12:21 +0000
    Re: Python declarative Chris Angelico <rosuav@gmail.com> - 2014-01-25 18:33 +1100
    Re: Python declarative matej@ceplovi.cz (Matěj Cepl) - 2014-01-25 12:23 +0100
  Re: Python declarative Asaf Las <roegltd@gmail.com> - 2014-01-24 04:04 -0800

csiph-web