Re: Pythonic gui format?



Gregory Petrosyan wrote:
Thanks for your reply.
But isn't python code more flexible than XML? I think it's not harder
to edit py file than xml file.

It's all about integration with tools, and while there are various
situations where avoiding tools is often better than extensive use of
tools (Python vs. Java-plus-Eclipse being an example that springs to my
mind, at least), there are some very good tools for certain kinds of
GUI design; it's better in such situations to make use of those tools
rather than eschew them in favour of something "Pythonic" but, in
various respects, less usable.

Once upon a time, it may have been the case that GUI design tools
(typically for forms-based applications) only produced program code - I
think SpecTcl, for example, was admired for its capabilities but
criticised for its Tcl-centric nature, ultimately forcing many to look
elsewhere despite variants such as SpecPython - but most design tools
now seem to produce some kind of XML description of widgets and
dialogues. How usable to other languages would Glade or Qt Designer be
if they respectively produced just C and C++ code? (Actually, unlike
Tcl, consuming C or C++ produced from the same tools would be an
annoyance in itself, I'd imagine.)

Paul

.



Relevant Pages

  • Re: dynamic class instantiation
    ... I think mixing XML, ... LDF to python parser is a LOT ... This xml file is then fed into the database at the ...
    (comp.lang.python)
  • Re: Parsing Excel spreadsheets
    ... spreadsheets in Python. ... I save the spreadsheets in xml format. ... big was the xml file, and how long did it take to parse the xml file? ...
    (comp.lang.python)
  • ANN: Amara XML Toolkit 1.2.0.2
    ... Fix bindery bug with e.g. del html.head.title ... Amara XML Toolkit is a collection of Python tools for XML processing-- ...
    (comp.lang.python.announce)
  • Re: Problem with processing XML
    ... standard ways things work in Python. ... If you want to stray from the standards then with some APIs ... Python than hear anyone's sermon about how great Python's other XML ... It's not about "other XML technologies", it's only about making the standard ...
    (comp.lang.python)
  • Issues with XMLTreeBuilder in cElementTree and ElementTree
    ... python app to pretty print xml files. ... return self._target.start(tag, attrib) ... ordered_attributes attribute in the expat parser to use either ordered ... I've never submitted a bug fix to a python library so if this ...
    (comp.lang.python)